Compare commits

..

No commits in common. "d0e7a1d453807b5a35d8d676144fa341566def46" and "ecf075aa4653dd7c4852a7b38f47b2b784523e65" have entirely different histories.

2 changed files with 4 additions and 41 deletions

View File

@ -30,26 +30,6 @@ dhcp_networks:
pxeboot : 10.1.1.193 pxeboot : 10.1.1.193
vlan15:
subnet : 10.10.10.64
netmask : 255.255.255.224
router : 10.10.10.94
range_from : 10.10.10.82
range_to : 10.10.10.92
broadcast : 10.10.10.95
dns : 10.10.10.55
pxeboot : 10.10.10.93
vlan42:
subnet : 10.10.42.0
netmask : 255.255.255.0
router : 10.10.42.254
range_from : 10.10.42.1
range_to : 10.10.42.250
broadcast : 10.10.42.0
dns : 10.10.10.55
pxeboot : 10.10.10.100
vlan50: vlan50:
subnet : 10.10.10.96 subnet : 10.10.10.96
netmask : 255.255.255.224 netmask : 255.255.255.224
@ -57,7 +37,7 @@ dhcp_networks:
range_from : 10.10.10.97 range_from : 10.10.10.97
range_to : 10.10.10.125 range_to : 10.10.10.125
broadcast : 10.10.10.127 broadcast : 10.10.10.127
dns : 10.10.10.55 dns : 10.1.1.210
pxeboot : 10.10.10.100 pxeboot : 10.10.10.100
@ -68,7 +48,7 @@ dhcp_networks:
range_from : 10.10.10.129 range_from : 10.10.10.129
range_to : 10.10.10.158 range_to : 10.10.10.158
broadcast : 10.10.10.159 broadcast : 10.10.10.159
dns : 10.10.10.55 dns : 10.1.1.210
pxeboot : 10.10.10.129 pxeboot : 10.10.10.129
@ -79,7 +59,7 @@ dhcp_networks:
range_from : 10.10.10.226 range_from : 10.10.10.226
range_to : 10.10.10.253 range_to : 10.10.10.253
broadcast : 10.10.10.255 broadcast : 10.10.10.255
dns : 10.10.10.55 dns : 10.1.1.210
pxeboot : 10.10.10.225 pxeboot : 10.10.10.225

View File

@ -4,18 +4,6 @@
yum: yum:
name: dhcp name: dhcp
state: present state: present
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version < "8"
- name: install dhcp-server package
dnf:
name: dhcp-server
state: present
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version >= "8"
- name: deploy dhcpd config - name: deploy dhcpd config
@ -31,9 +19,4 @@
name: dhcpd name: dhcpd
enabled: yes enabled: yes
state: started state: started
when: when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker"
- ansible_distribution == "CentOS"
- ansible_virtualization_type != "docker"
...