Ignore errors To ignore errors use the attribute ignore_errors as the following example. – name: be sure ntp is installed yum: … More
Tag: ansible
[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
[Ansible] – How to create conditionals? How to just run a task when and/or if?
Use the attribute when to define that some task can just be executed when some conditional be attended. Following an … More
[Ansible] – How to create loops?
Simple loop To create loops the attribute with_items is used to define that the action/task will be performed for all items … More
[Ansible] – How to include tasks and variables file definitions?
It is possible to create files with tasks and variables definitions to reuse in many playbooks. To use them in … More
[Ansible] – Understanding Ansible facts
What are Ansible Facts? Ansible facts are variables that automatically are obtained for example the hostname, the network interfaces, the version of the operating … More
[Ansible] – How to use variables?
Syntax variable names Spaces, and dots and special characters as for example ($) are not valid syntaxes for the variable names. … More
[Ansible] – How to define a list of values in the YAML files?
The list can be informed like the following example. hosts: – servera.example.com – serverb.example.com – serverc.example.com Also, it can be … More
[Ansible] – How to create and use variable dictionaries in the YAML files?
The key-value pairs can be passed indented in the file like the following example. name: valuename key: value secondkey: 2 … More