Skip to content
Snippets Groups Projects
Commit 2502a72d authored by Adham Helal's avatar Adham Helal
Browse files

Make use of group var as a directory

parent 6ed866d0
No related branches found
No related tags found
No related merge requests found
##Ansible Best Practises
Problem that is being addressed is to complexity of the ansible projects, soon as the project starts grow. Organization of the code in this repository shows how it is possible solve following issues:
* How to manage external roles
* Usage of variables
* Naming
* Staging
* Complexity of plays
Problem that is being addressed is to complexity of the ansible projects, soon as the project starts grow. Organization of the code in this repository shows how it is possible solve following issues:
* How to manage external roles
* Usage of variables
* Naming
* Staging
* Complexity of plays
##Directory Layout
......@@ -18,8 +18,11 @@ Problem that is being addressed is to complexity of the ansible projects, soon a
group_vars/
all # variables under this directory belongs all the groups
common.yml # Common role variable file
webservers # here we assign variables to webservers groups
nginx.yml # Each file will corspond to a role i.e. nginx
postgresql # here we assign variables to postgresql groups
postgresql.yml # Each file will corspond to a role i.e. postgresql
plays
ansible.cfg # Ansible.cfg file that holds all ansible config
webservers.yml # playbook for webserver tier
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment