Commit 29ecc583 authored by Stefano Rivera's avatar Stefano Rivera

Avoid staticips and dhcp-server fighting over /etc/network/interfaces

Both dhcp-server and staticips roles take control of

Rather than re-writing the file multiple times in one ansible run, let's
just make staticips quiescent when the dhcp-server role is present.
parent 0f599497
Pipeline #34027 passed with stage
in 2 minutes and 43 seconds
......@@ -4,7 +4,7 @@
src: templates/interfaces.j2
dest: /etc/network/interfaces
when: staticips.write_interfaces
when: staticips.write_interfaces and 'dhcp-server' not in role_names
- kill lingering dhclients
- restart networking
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment