Use the param –step. Following an example $ ansible-playbook myplabook.yml –step
Author: camilamacedo86
[Ansible] – How to work with encrypted data?
The ansible-vault command will be used to work with encryption and decryption of files. Following an example. $ansible-vault create myencryptedfile.yml … More
[Ansible] – How to run tasks in parallel?
By default, Ansible runs the same task in 5 hosts in parallel. This configuration can be changed by using “forks” parameter … More
[Ansible] – How to define that some task into the playbook should be executed locally or in another host?
In order to configure that the task should be executed in another host use the attribute delegate_to and to define that … More
[Ansible] – Understanding roles
Roles are a good way to organize ansible playbooks. Roles allow group the tasks, handlers, files, templates and variable definitions. Following … More
[Ansible] – Using the module template and jinja files to update hosts
The module template is helpful to create contents in the hosts. Jinja allows work by creating dynamically contents as the … More
[Ansible] – How to create a code implementation similar to try catch statements?
To attend this need Ansible provides the attribute block as follows. tasks: – block: # Add here the tasks/actions rescue: … More
[Ansible] – How to work with errors? How to ignore and or create conditionals to fail?
Ignore errors To ignore errors use the attribute ignore_errors as the following example. – name: be sure ntp is installed yum: … More
[Ansible] – How to use tags?
Tags is an attribute which can be used to allow or not run some tasks when just some specific tag … More
[Ansible] – Understanding Handlers
Handlers are used to trigger actions when the tasks are executed. For example, in the case of being required to … More