Jul 7, 22
Search for a String in a File - Ansible module lineinfile
How to automate the search of a string “PasswordAuthentication no” in the “/etc/ssh/sshd_config” file using Ansible Playbook and lineinfile module.
Jul 7, 22
Find All Files with Extension - Ansible module find
How to automate the finding of all files with “.cnf” extension under the “example” directory of “devops” user using Ansible Playbook and find module.
Mar 30, 22
Add Execute Permission 755 Linux file - Ansible module file
How to automate the setting of execute permission 755 for example.sh Linux file with Ansible module file.
Mar 13, 22
Check if a directory exists on Windows-like systems - Ansible module win_stat
How to automate the checking of the "example" directory/folder in the Desktop of the user on the Windows system and display a message or execute a task accordingly with Ansible Playbook.
Feb 1, 22
Concatenate multiple files in a specific order - Ansible module template and YAML
How to automate the concatenation of multiple files and format using a list in the YAML and Ansible module template with Jinja2 language. Included example with "a.txt", "b.txt" and "includes.yaml" files for Pandoc.
Jan 27, 22
Create an empty file in Windows-like systems - Ansible module win_file
How to automate the creation of an empty “example.txt” in the Desktop of your users in Windows-like systems with Ansible Playbook.
Jan 4, 22
Ansible troubleshooting - Destination does not exist
How to reproduce the destination does not exist error in Ansible, troubleshooting, and fix to be able to successfully download a file from an URL in a home directory with your Ansible playbook.
Nov 15, 21
Create a symbolic link (also symlink or soft link) in Linux - Ansible module file
How to create an "example" symbolic/soft link to "/proc/cpuinfo" on Linux filesystem using Ansible
Sep 24, 21
Rename file or directory - Ansible module copy and file
How to rename a file or directory "foo", checking the file existence, and performing the verification in a live demo and some simple Ansible code.
Sep 22, 21
Create a text file - Ansible module copy
How to create a simple text file with two linex of content in Ansible.
Sep 17, 21
Create an empty file - Ansible module file
How to create an empty ~/example.txt file or update the time of an already create file.