Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created February 24, 2020 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lynt-smitka/28ee2fe7460719c2097b742ea3334c68 to your computer and use it in GitHub Desktop.
Save lynt-smitka/28ee2fe7460719c2097b742ea3334c68 to your computer and use it in GitHub Desktop.
Run command on all ansible hosts and return output
- 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