Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arbabnazar/4f599b4ea576c5bc06de to your computer and use it in GitHub Desktop.
Save arbabnazar/4f599b4ea576c5bc06de to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script to create ansible playbook directories
# define your roles here
roles=(upgrade packages)
directories=(tasks handlers files default vars templates)
# create playbook
mkdir global_vars
for i in ${roles[@]}; do
for j in ${directories[@]}; do
mkdir -p ${i}/${j}
done
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment