Compare commits

...

10 Commits

Author SHA1 Message Date
d0e7a1d453 0.1.26-DEV-20221122-121317
--------------------------
  * MODIFY:
    - update dns ip for vlan1
2022-11-22 12:14:11 -05:00
2be655516f 0.1.25-DEV-20221018-142304
--------------------------
  * MODIFY:
    - expand ip range for vlan42
2022-10-18 14:23:48 -04:00
8740711cb4 0.1.24-DEV-20220831-230045
--------------------------
* MODIFY:
  - modify dns for vlan1
2022-08-31 23:23:36 -04:00
c9797f1508 0.1.22-DEV-20220828-202411
--------------------------
    * ADD:
      - add support for centos 8+

    * MODIFY:
      - modify dns for vlan1
2022-08-28 20:25:05 -04:00
c9bdf531fe 0.1.21-DEV-20220429-144255
--------------------------
    * ADD:
      - add vlan42
2022-04-29 14:44:11 -04:00
82c4b8f1b3 0.1.20-DEV-20211115-092427
--------------------------
    * MODIFY:
      - defaults/main/dhcpd_vars.yml - dns ip
2021-11-15 09:25:15 -05:00
3866e9ca6f update dns ips for each vlan 2021-11-07 17:04:17 -05:00
64d1e88860 0.1.18-DEV-20210421-120208
--------------------------
    * MODIFY:
      - defaults/main/dhcpd_vars.yml - range_from for vlan15
2021-10-01 11:38:19 -04:00
f596816b27 0.1.17-DEV-20210421-120208
--------------------------
    * MODIFY:
      - defaults/main/dhcpd_vars.yml - range_from for vlan15
2021-04-21 12:02:44 -04:00
ecc48ef336 0.1.16-DEV-20210119-040951
--------------------------
    * ADD:
      - defaults/main/dhcpd_vars.yml - vlan15
2021-01-19 04:11:25 -05:00
2 changed files with 41 additions and 4 deletions

View File

@ -30,6 +30,26 @@ 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
@ -37,7 +57,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.1.1.210 dns : 10.10.10.55
pxeboot : 10.10.10.100 pxeboot : 10.10.10.100
@ -48,7 +68,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.1.1.210 dns : 10.10.10.55
pxeboot : 10.10.10.129 pxeboot : 10.10.10.129
@ -59,7 +79,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.1.1.210 dns : 10.10.10.55
pxeboot : 10.10.10.225 pxeboot : 10.10.10.225

View File

@ -4,6 +4,18 @@
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
@ -19,4 +31,9 @@
name: dhcpd name: dhcpd
enabled: yes enabled: yes
state: started state: started
when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker" when:
- ansible_distribution == "CentOS"
- ansible_virtualization_type != "docker"
...