Last active
May 12, 2016 04:52
-
-
Save srgvg/a39e2380289143a89ccaba4de34741c4 to your computer and use it in GitHub Desktop.
ansible/issues/12395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raven.toroid.org | |
magpie.toroid.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
gather_facts: no | |
tasks: | |
- block: | |
- debug: var=inventory_hostname | |
- command: /bin/false | |
ignore_errors: y | |
register: x | |
- block: | |
- debug: var=inventory_hostname | |
- block: | |
- debug: var=inventory_hostname | |
when: x|failed | |
when: inventory_hostname != 'raven.toroid.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
gather_facts: no | |
tasks: | |
- block: | |
- debug: msg="1. {{inventory_hostname}}" | |
- command: /bin/false | |
ignore_errors: y | |
register: x | |
- block: | |
- debug: msg="2. {{inventory_hostname}}" | |
- block: | |
- debug: msg="3. {{inventory_hostname}}" | |
when: x|success | |
when: inventory_hostname != 'raven.toroid.org' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment