This ansible role helps to use several receipts together. Just wrapper for other roles.
├── /defaults/ # Default variables for playbook
│ └── main.yml # Variables for playbook
├── /meta/ # Meta
│ └── main.yml # Ansible Galaxy meta information
├── /roles/ # Vendor playbooks
├── /temp/ # Temp files
│── ansible.cfg # Ansible configuration file
│── hosts # Inventory file
│── README.md # Project description
│── requerements.txt # Dependencies file
└── playbook.yml # Playbook file
Provisioner use other ansible receipts witch are specified in requirements.yml
:
---
- src: "https://github.com/Stouts/Stouts.locale"
name: locale
version: 1.1.0
... other tools ...
Run command:
$ ansible-galaxy install -r requirements.yml
All variables should be placed in defaults/main.yml
:
---
provision_user_name: deploy
... other variables ...
This variables are used in playbook playbook.yml
.
Playbook is playbook.yml
- main file. Plase here all logic.
Is located in hosts
.
# hosts
[provision]
# Set you hosts
0.0.0.0
$ ansible-playbook playbook.yml -i hosts -vvv