Conditional installation

Don't import installation tasks when the zt0 interface is present on target host.
pull/20/head
Marcus Meurs 2018-04-05 11:23:07 +02:00
parent 6afd96758f
commit 7b9f5d02a3
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
--- ---
# tasks file for ansible-role-zerotier # tasks file for ansible-role-zerotier
- import_tasks: install.yml - import_tasks: install.yml
when:
- "'zt0' not in ansible_interfaces"
- import_tasks: authorize_node.yml - import_tasks: authorize_node.yml
when: when: