Conditional installation
Don't import installation tasks when the zt0 interface is present on target host.pull/20/head
parent
6afd96758f
commit
7b9f5d02a3
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
# tasks file for ansible-role-zerotier
|
||||
- import_tasks: install.yml
|
||||
when:
|
||||
- "'zt0' not in ansible_interfaces"
|
||||
|
||||
- import_tasks: authorize_node.yml
|
||||
when:
|
||||
|
|
|
|||
Loading…
Reference in New Issue