Path
Ansible
Describe the state you want in a playbook and let Ansible make it true, the same way every time: inventories, modules, variables, templates, handlers, roles and vault.
By Deboistech 10 labs 2 h 31 minBeginner to intermediate
Showing 1 of 10 labs.
- Subscription Ad-hoc commands and your first playbook Run modules ad-hoc, write a playbook, run it twice and read the recap.
- Subscription Inventories, groups and variables Describe hosts and groups in INI and YAML, set variables on them and target part of the fleet.
- Subscription Managing files idempotently Create, copy and edit files with modules, and see why a second run changes nothing.
- Subscription Variables, facts and precedence Define variables in five places, see which one wins, and use registered results and facts.
- Subscription Conditionals and loops Repeat a task over a list, skip tasks with when, and retry a task until it succeeds.
- Subscription Jinja2 templates Render config files from variables with the template module, filters, loops and conditions.
- Subscription Handlers and change control Run an action only when something changed, once per play, and control what counts as changed.
- Subscription Roles, reusable automation Scaffold a role, give it defaults, tasks, a template and a handler, and reuse it with new values.
- Subscription Protecting secrets with Vault Encrypt files and single values with ansible-vault and use them in a playbook.
- Subscription Robust, safe playbooks Catch mistakes before they run, fail early, recover with rescue, and preview with check and diff.
