zen_dhcpd/tasks/main.yml
Chris Hammer 8aca7fdfcf 0.1.15-DEV-20201105-152244
--------------------------
    * MODIFY:
      - slight formatting change for dhcpd package install task

    * REMOVE:
      - removed ansible-lint rule 201 as we've filled out meta/main.yml a little bit
2020-11-05 15:22:49 -05:00

23 lines
435 B
YAML

---
# tasks file for zen_dhcpd
- name: install dhcpd package
yum:
name: dhcp
state: present
- name: deploy dhcpd config
template:
src: templates/dhcpd_conf.j2
dest: "/etc/dhcp/dhcpd.conf"
mode: 0644
notify: restart dhcpd
- name: enable/start dhcpd
service:
name: dhcpd
enabled: yes
state: started
when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker"