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 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.
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.
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.
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.