May 3, 22
Write a Variable to a File - Ansible module copy vs template
How to save the value of a variable to file using the Ansible copy vs template modules. Included the comparison and a step-by-step example.
Jan 17, 22
Copy Multiple Files to Remote Hosts - Local to Remote - Ansible lookup plugin fileglob
How to automate the copy of the "example/*.txt" files to a target host using the with_fileglob Ansible loop statement and Ansible lookup plugin fileglob.
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.