git clone https://github.com/nelsg/ansible-tuto.git
cd ansible-tutoMinimum Docker version: 1.10.1
- Build and launch environment with
./env_up.sh, any previous environment is destroyed :
cd ansible-tuto
./env_up.sh
# password is : 'ansible'- Clean every
./env_clean.sh
- command or action: ansible module like just a shell command. Intro in step-02.
- task: it's combine an action (a module and its arguments) with a name and optionally some other keywords (like looping directives).
- playbook: an yaml file contains roles executed in sequence, and eventually individual tasks. Intro in step-04.
- role: an organisational unit grouping tasks together in order to install a piece of software. Intro in step-12.
Just in case you want to skip to a specific step, here is a topic table of contents.
- 00. Docker Setup
- 01. Basic inventory
- 02. First modules and facts
- 03. Groups and variables
- 04. Playbooks
- 05. Playbooks, pushing files on nodes
- 06. Playbooks and failures
- 07. Playbook conditionals
- 08. Git module
- 09. Extending to several hosts
- 10. Templates
- 11. Variables again
- 12. Migrating to roles
- 13. Using tags
- 99. The end