Skip to content
Snippets Groups Projects
Commit 8c74bd1f authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Delete network config files from instance-debootstrap

parent 756bf837
Branches
No related tags found
No related merge requests found
...@@ -21,6 +21,20 @@ ...@@ -21,6 +21,20 @@
notify: notify:
- restart networkd - restart networkd
- name: find network config files generated by the bootstrap process
find:
path: /etc/systemd/network
pattern: bootstrap-*.network
register: bootstrap_network_files
- name: delete network config files generated by the bootstrap process
file:
path: "{{item.path}}"
state: absent
loop: "{{bootstrap_network_files.files}}"
notify:
- restart networkd
- name: ensure bonding works correctly - name: ensure bonding works correctly
include_tasks: bond.yml include_tasks: bond.yml
loop: "{{ networkd|default([{'type': networkd_type}])|flatten(levels=1) }}" loop: "{{ networkd|default([{'type': networkd_type}])|flatten(levels=1) }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment