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.
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 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 3, 22
Download a file in Windows-like systems - Ansible module win_get_url
How to automate the download of a file, verify the checksum and save wherever you want in Windows-like systems with Ansible module win_get_url.
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.
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.