Created
May 10, 2016 14:36
-
-
Save cuongnv23/3f6b085a9aa24a26f30168723ca15a16 to your computer and use it in GitHub Desktop.
ansible-playbook-init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ANS_FILES="inventory site.yml config.yml" | |
| ANS_DIRS="group_vars host_vars roles yml" | |
| for f in ${ANS_FILES}; do | |
| echo "touch ${f}" | |
| touch ${f} | |
| done | |
| for d in ${ANS_DIRS}; do | |
| if [ ! -d ${d} ]; then | |
| echo "mkdir ${d}" | |
| mkdir ${d} | |
| else | |
| echo "${d} already exists!" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment