Create cleanup script before attempting to execute it

This commit is contained in:
Logan V 2018-03-16 21:34:57 -05:00
parent 677909eaa1
commit 77dbdfed34
1 changed files with 8 additions and 8 deletions

View File

@ -32,14 +32,6 @@
tags:
- systemd-networkd
- name: Run interface cleanup script
command: "/usr/local/bin/interface-cleanup"
failed_when: false
when:
- systemd_interface_cleanup | bool
tags:
- systemd-networkd
- name: Create systemd-networkd interface cleanup script
template:
src: "interface-cleanup.sh.j2"
@ -52,6 +44,14 @@
tags:
- systemd-networkd
- name: Run interface cleanup script
command: "/usr/local/bin/interface-cleanup"
failed_when: false
when:
- systemd_interface_cleanup | bool
tags:
- systemd-networkd
- name: Create systemd-networkd network device(s)
template:
src: "systemd-netdev.j2"