Created
April 1, 2015 22:14
-
-
Save amarao/5ebe4d9c2fd04dfaf287 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
- name: test hostvars host1 | |
hosts: LBL | |
tasks: | |
- shell: echo `hostname` | |
register: ls_out | |
- set_fact: | |
ls_down: '{{ ls_out.stdout }}' | |
- name: test hostvars | |
hosts: LM | |
tasks: | |
- debug: msg='Res is {{hostvars.LBL.ls_down}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment