Aug 19, 21
Edit single-line text -Ansible module lineinfile
How to edit a single-line text in a file with Ansible module lineinfile.
Aug 1, 21
Edit multi-line text - Ansible module blockinfile
Deep dive into the Ansible module blockinfile of the collection ansible. builtin to edit multi-line text with Ansible. Live demo and Ansible playbook included.
Jul 29, 21
Check if a directory exists - Ansible module stat
Deep dive into the Ansible module stat of the collection ansible.builtin to test if a specified path is a directory and print a message. Live demo and Ansible playbook included.
Jul 27, 21
Test host availability - Ansible module ping
Deep dive into the Ansible module ping in the collection ansible.builtin to test the access to a managed host and that Python is installed. Live demo and Ansible playbook included.