Working with Linux services using Ansible Systemd and Service modules

Init process in Linux is the first process to start on boot, and it tracks all the system services and Daemons. Various Linux Distros have created different implementations of the standard init systems. Currently, the most popular init system adopted by various Linux distros is systemd. In Ansible, the systemd processes can be controlled by systemd […]

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