From 6ed866d0435b2bc1f5a86281c3e5a5dbe2794038 Mon Sep 17 00:00:00 2001 From: Engin Yoeyen <engin.yoyen@gmail.com> Date: Thu, 26 Feb 2015 14:53:23 +0100 Subject: [PATCH] Add Licence and Readme file --- LICENSE | 21 +++++++++++++++++++++ README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d9372ad --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Engin Yöyen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5eaa661 --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +##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 + + + + +##Directory Layout + + production.ini # inventory file for production stage + development.ini # inventory file for development stage + test.ini # inventory file for test stage + + group_vars/ + all # variables under this directory belongs all the groups + webservers # here we assign variables to webservers groups + postgresql # here we assign variables to postgresql groups + plays + ansible.cfg # Ansible.cfg file that holds all ansible config + webservers.yml # playbook for webserver tier + postgresql.yml # playbook for postgresql tier + + roles/ + requirements.yml # All the infromation about the roles + external # All the roles that are in git or ansible galaxy + # This directory is in ignored by git and all the roles in the + # requirements.yml will be downloaded into this directory + internal # All the roles that are not public + + + +#License +MIT License. + + + -- GitLab