Created
May 14, 2015 11:14
-
-
Save rodnaph/0cdcbf934db4563e26dc to your computer and use it in GitHub Desktop.
Get local hostname in Ansible
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
- local_action: command hostname | |
register: hostname | |
- debug: msg=hostname.stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I think the debug statement should use variable: