Working with Ansible yum module

Ansible has a specific module for managing yum packages. You can install, remove, upgrade or downgrade versions, etc. using this module. As with other package management modules in Ansible, the yum module also requires two parameters for the primary command. Name – The package you want to install. State – what should be the state of […]

Working with Ansible facts – retrieving facts

What are Ansible facts? Ansible facts are pieces of information regarding the remote systems to which you have connected. It contains information like IP addresses, the OS installed, Ethernet devices, mac address, time/date related data, hardware information etc. These are very useful for scenarios where you need to take conditional operations based on the remote […]

How to Create a Directory in Ansible

You will need to create directories or folders in Ansible many times during may of the DevOps process. Although you could do create directories using shell or command module, ansible provides a better and safer method for creating directories using the ‘file’ module. Ansible Directory Creation example To create a directory using the file module, […]