diff --git a/tasks/config.yml b/tasks/config.yml index 1808fae..0424c51 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -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: