Created
August 12, 2015 09:18
-
-
Save hiroakis/b14683a84c2fb06c3b6c to your computer and use it in GitHub Desktop.
create ansible directory layout http://docs.ansible.com/ansible/playbooks_best_practices.html#directory-layout
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
#!/bin/sh | |
touch production staging | |
mkdir group_vars | |
touch group_vars/group1 | |
touch group_vars/group2 | |
mkdir host_vars | |
touch host_vars/hostname1 | |
touch host_vars/hostname2 | |
mkdir library | |
touch library/.keep | |
mkdir filter_plugins | |
touch filter_plugins/.keep | |
touch site.yml | |
touch webservers.yml | |
touch dbservers.yml | |
mkdir -p roles/{common,webtier,monitoring,fooapps} | |
mkdir -p roles/common/{tasks,handlers,templates,files,vars,defaults,meta} | |
touch roles/common/tasks/main.yml | |
touch roles/common/handlers/main.yml | |
touch roles/common/templates/ntp.conf.j2 | |
touch roles/common/files/bar.txt | |
touch roles/common/files/foo.sh | |
touch roles/common/vars/main.yml | |
touch roles/common/defaults/main.yml | |
touch roles/common/meta/main.yml | |
touch roles/webtier/.keep | |
touch roles/monitoring/.keep | |
touch roles/monitoring/.keep | |
touch roles/fooapps/.keep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment