0.1.0-DEV-20200212-80132

------------------------
    * INITIAL:
      - initial repo commit
This commit is contained in:
2020-02-12 08:01:10 -05:00
commit 616cb434f0
11 changed files with 279 additions and 0 deletions

20
tasks/main.yml Normal file
View File

@ -0,0 +1,20 @@
---
# 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"