Skip to content

Instantly share code, notes, and snippets.

@yenjoji
Last active October 24, 2017 04:53
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 yenjoji/2a69785a52d14d147591b45968d3b23c to your computer and use it in GitHub Desktop.
Save yenjoji/2a69785a52d14d147591b45968d3b23c to your computer and use it in GitHub Desktop.
create ansible directory structure
#!/bin/sh
mkdir -p playbook
cd playbook
touch production staging integration site.yml
mkdir -p group_vars host_vars library filter_plugins
mkdir -p roles/template/{tasks,handlers,templates,files,vars,defaults,meta}
touch roles/template/{tasks,handlers,templates,files,vars,defaults,meta}/main.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment