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
|
||||
notify: __network_restart
|
||||
|
||||
- name: Add static routes
|
||||
copy:
|
||||
content: "{{ item.value }}"
|
||||
dest: "/etc/sysconfig/network-scripts/route-{{ item.key }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
loop: "{{ network_routes | dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
when: item.key in ansible_interfaces
|
||||
notify: __network_restart
|
||||
- name: Add static routes
|
||||
copy:
|
||||
content: "{{ item.value }}"
|
||||
dest: "/etc/sysconfig/network-scripts/route-{{ item.key }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
loop: "{{ network_routes | dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
when: item.key in ansible_interfaces
|
||||
notify: __network_restart
|
||||
|
||||
- name: Set dns server
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user