Ansible Tutorial

Throughout this course, I will be explaining the things I Learned about Ansible, issues faced, how I solved them, working with some standard modules, etc. Please feel free to comment on any issues. This tutorial is in a growing phase. I will update the list as I encounter more modules and issues. INDEX What is […]

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