December 2018
Intermediate to advanced
226 pages
4h 57m
English
This section is specific to how the playbook will be executed:
- name: Run ping commands hosts: all gather_facts: false remote_user: test connection: local #no_log: True
As we saw in the execution of the previous playbook, there were certain additional parameters we had to pass for a proper execution of the playbook. In this section, some of those parameters (connection type and username) are already provided, hence a command-line execution of this playbook would look like this:
ansible-playbook -i inventory checklist.yml -k
This is much easier than passing the additional parameters, since the required values are already configured in the playbook.
Read now
Unlock full access