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 […]

Using Ansible blockinfile Module

Ansible blockinfile module is used to insert/update/remove a block of lines. The block will be surrounded by a marker, like begin and end, to make the task idempotent. If you want to modify/ insert only a line, use lineinfile module. You can find the documentation in You can find more details of blockinfile module in Ansible documentation. […]