Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created September 4, 2015 19:50
Show Gist options
  • Save tgerla/08205aeaae9b23a08c44 to your computer and use it in GitHub Desktop.
Save tgerla/08205aeaae9b23a08c44 to your computer and use it in GitHub Desktop.
---
- hosts: all
connection: local
tasks:
- name: run a sample command
command: uptime
register: uptimeOutput
- debug: var=uptimeOutput
- debug: var=uptimeOutput.stdout
- debug: msg="the output is {{ uptimeOutput.stdout }}"
- debug: var=inventory_hostname
- debug: var=group_names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment