Conditional installation
Don't import installation tasks when the zt0 interface is present on target host.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user