Style changes
This commit is contained in:
parent
4296823b3f
commit
248b921cb4
9 changed files with 82 additions and 77 deletions
|
|
@ -1,9 +1,10 @@
|
|||
- name: check old network configuration
|
||||
stat: path=/etc/network/interfaces
|
||||
stat:
|
||||
path: '/etc/network/interfaces'
|
||||
register: old_config
|
||||
|
||||
- name: move old network configuration
|
||||
command: mv /etc/network/interfaces /etc/network/interfaces.save
|
||||
command: 'mv /etc/network/interfaces /etc/network/interfaces.save'
|
||||
when: old_config.stat.exists
|
||||
|
||||
- name: copy network configuration
|
||||
|
|
@ -22,6 +23,6 @@
|
|||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
force: yes
|
||||
force: true
|
||||
mode: '0644'
|
||||
notify: restart systemd-resolved
|
||||
|
|
|
|||
Reference in a new issue