This commit is contained in:
parent
7c2eb01048
commit
1fbb3d4612
@ -28,18 +28,18 @@
|
|||||||
when: item.key in ansible_interfaces or item.key.split(":")[0] in ansible_interfaces
|
when: item.key in ansible_interfaces or item.key.split(":")[0] in ansible_interfaces
|
||||||
notify: __network_restart
|
notify: __network_restart
|
||||||
|
|
||||||
- name: Add static routes
|
- name: Add static routes
|
||||||
copy:
|
copy:
|
||||||
content: "{{ item.value }}"
|
content: "{{ item.value }}"
|
||||||
dest: "/etc/sysconfig/network-scripts/route-{{ item.key }}"
|
dest: "/etc/sysconfig/network-scripts/route-{{ item.key }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
loop: "{{ network_routes | dict2items }}"
|
loop: "{{ network_routes | dict2items }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
when: item.key in ansible_interfaces
|
when: item.key in ansible_interfaces
|
||||||
notify: __network_restart
|
notify: __network_restart
|
||||||
|
|
||||||
- name: Set dns server
|
- name: Set dns server
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user