Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created January 11, 2019 00:00
Show Gist options
  • Save rms1000watt/7726c621c8911cfa0058988fa12c315e to your computer and use it in GitHub Desktop.
Save rms1000watt/7726c621c8911cfa0058988fa12c315e to your computer and use it in GitHub Desktop.
Test Ansible YAML for local testing
- hosts: 127.0.0.1
tasks:
- shell: cat hello.txt
register: hello_world
changed_when: false
- debug:
var: hello_world.stdout
- debug:
msg: "{{hello_world.stdout}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment