Merge pull request #7 from m4rcu5nl/feature/import_tasks_propperly

Move away from deprecated way to include tasks
pull/8/head
Marcus 2017-12-17 05:40:03 +01:00 committed by GitHub
commit 9b6296e678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
---
# tasks file for ansible-role-zerotier
- include: install.yml
- import_tasks: install.yml
- name: Check for successfully joined networks
shell: zerotier-cli listnetworks | grep 'OK'| awk '{print $3}'
register: joinednetworks
- include: join_network.yml
- include_tasks: join_network.yml
when:
- 'zerotier_network_id not in joinednetworks.stdout'
- zerotier_accesstoken is defined