Merge pull request #8 from m4rcu5nl/feature/skip_tasks_in_check_mode

Resolved errors in check-mode
pull/9/head
Marcus 2017-12-17 05:52:44 +01:00 committed by GitHub
commit 62682def92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@
when:
- zerotier_repo|succeeded
- not ansible_check_mode
tags:
- installation
- packages

View File

@ -29,5 +29,6 @@
when:
- zerotier_accesstoken is defined
- not ansible_check_mode
tags:
- configuration

View File

@ -5,6 +5,7 @@
- name: Check for successfully joined networks
shell: zerotier-cli listnetworks | grep 'OK'| awk '{print $3}'
register: joinednetworks
check_mode: yes
- include_tasks: join_network.yml
when: