July 2017
Intermediate to advanced
266 pages
6h 36m
English
Now that we have a set of inventory groups or raw inventory items defined, the next step is to see how to call Ansible and target a specific set of groups or even inventory files (if different from the default /etc/Ansible/hosts file). This functionality is incredibly important as we gain experience using Ansible. Let's take a look at how to target specific groups first. The following example provides a simple example of an Ansible command line that executes a playbook against a grouped inventory:
#> ansible playbookfoo.yml -l 'groupname'
As we can see from the example, we can execute Ansible playbooks against specific infrastructure groups. The outcome of these executions ...
Read now
Unlock full access