Created
February 24, 2020 09:36
-
-
Save lynt-smitka/28ee2fe7460719c2097b742ea3334c68 to your computer and use it in GitHub Desktop.
Run command on all ansible hosts and return output
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: | |
- shell: uname -a | |
register: result | |
- debug: msg={{ result.stdout }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment