Oct 9, 22
Read a JSON file into a variable - Ansible lookup plugin file
How to automate the reading of example.json file on Ansible host, assign to a variable and use in your Ansible Playbook code.
May 10, 22
How to Delete Only Files Inside a Directory - Ansible module find
How to automate the search and delete of the files and directories inside a directory keeping the main folder with Ansible modules find and file.
Apr 4, 22
Backup With Robocopy on Windows - Ansible module win_robocopy
How to automate the backup synchronization of an “examples” folder to “examples-backup” on Windows using RoboCopy with Ansible module win_robocopy.
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 15, 22
Check if a file exists on Windows-like systems - Ansible module win_stat
How to automate the checking of the “example.txt” file on the Desktop of the user in the Windows system and display a message or execute a task accordingly with Ansible Playbook.
Mar 14, 22
Create a directory on Windows-like systems - Ansible module win_file
How to automate the creation of "example" folder in the user Desktop on Windows-like hosts with Ansible Playbook.
Feb 16, 22
Read a file into a variable on host - Ansible lookup plugin file
How to automate the reading of example.txt file on Ansible host, assign to a variable and use in your Ansible Playbook code.
Feb 1, 22
Extract an archive in Windows-like systems - Ansible module win_unzip
How to automate the extraction of an example ZIP compressed archive with a text file inside creating the output directory on a Windows-like system with Ansible module win_unzip
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.
Dec 14, 21
Create a hard link in Linux - Ansible module file
How to create a "hard link" that references the "example.txt" text file in the Linux filesystem with Ansible. Simple Ansible code and verification included.
Nov 17, 21
Create a directory in Linux - Ansible module file
How to set up the "~/example" directory, set the user and group ownership, and UNIX mode 0644 in Linux with Ansible.