Skip to content

Instantly share code, notes, and snippets.

@rythie
Last active February 28, 2022 18:38
Show Gist options
  • Save rythie/9ed1b8f2c30fff1f64cf to your computer and use it in GitHub Desktop.
Save rythie/9ed1b8f2c30fff1f64cf to your computer and use it in GitHub Desktop.
Ansible hello world example
# To run this, name this file hello_world.yml and run the following in the same directory
# ansible-playbook hello_world.yml -i 'local,' --connection=local
- hosts:
- local
tasks:
- name: Create a directory
file: path=hello_world state=directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment