mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 04:03:52 +08:00
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>
26 lines
511 B
YAML
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
|