0.1.22-DEV-20220828-202411
-------------------------- * ADD: - add support for centos 8+ * MODIFY: - modify dns for vlan1
This commit is contained in:
@ -4,6 +4,18 @@
|
||||
yum:
|
||||
name: dhcp
|
||||
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
|
||||
@ -19,4 +31,9 @@
|
||||
name: dhcpd
|
||||
enabled: yes
|
||||
state: started
|
||||
when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker"
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_virtualization_type != "docker"
|
||||
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user