Files
fedora-infra_ansible/roles/dhcp_server/tasks/main.yml
Stephen Smoogen 432a3a497b Go through and remove entries for EL6 and EL7
Using `git grep el6` and `git grep el7` and variants like EL-7 or
el-7, I found various entries and files which were no longer needed
with the current ansible. I updated text or tests to later versions of
RHEL as needed.

found entries for the fedora ami's for the original cloud and removed
those entries also.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-07-03 22:20:30 +00:00

26 lines
511 B
YAML

---
- name: install dhcp server package (rhel8)
package: state=present name=dhcp-server
tags:
- packages
- base
- dhcp_server
when: ansible_distribution_major_version|int == 8
- name: setup dhcpd.conf
copy: src=dhcpd.conf.{{ inventory_hostname }} dest=/etc/dhcp/dhcpd.conf mode=644
notify:
- restart dhcpd
tags:
- sshd_config
- config
- sshd
- dhcp_server
- name: enable dhcpd service
service: state=started enabled=true name=dhcpd
tags:
- service
- config
- dhcp_server