Use the following command to check all modules $ ansible-doc -l ` Use the following command to check the documentation … More
Category: ansible
[Ansible] – Understanding string syntax
A string can be defined without and with quotes as the following examples here all is a string ‘my string … More
[Ansible] – Understanding playbooks
Ansible playbooks are YAML files which are implemented to run ansible tasks. Following a basic ansible playbook file structure. — # Here … More
[ansible] – Understanding Configuration file (ansible.cfg) and Privilege Escalation
Following an example o ansible.cfg in order to illustrate this explanation. [defaults] remote_user = myuser inventory = inventory [privilege_escalation] become = … More
[Ansible] – Running commands and using modules
Following the syntax: ansible hostgroup -m module [-a ‘module arguments’] [-i inventory] Note that it will allow you executed actions … More
[Ansible] – Inventories
The inventory is the file where you will config the host which will be used for ansible connect via SSH and … More
[Ansible] – Dynamic Inventories
Why and when is required? The dynamic inventories will be useful to get dynamically the hostnames/machines, which means that they … More
[Mac Os X] – How to install ansible version X?
Following an example/commands to install ansible 2.4. $ brew install python $ pip3 install virtualenv $ sudo pip install ansible==2.4.0 If you … More