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.
Mar 11, 22
Ansible terminology - ansible_hostname vs inventory_hostname vs ansible_fqdn
What is the difference between ansible_hostname vs inventory_hostname vs ansible_fqdn in a practical example with Ansible Playbook?
Feb 22, 22
Permanently Set Remote System Wide Environment Variables on Linux - /etc/environment - Ansible module lineinfile
How to automate the customization of System-Wide Environment Variables on Linux editing /etc/environment file using Ansible module lineinfile.
Feb 21, 22
Set remote environment per task or play - Ansible environment statement
How to set an EXAMPLE environmental variable at play and task Ansible Playbook code level and verify with echo Linux command.
Feb 21, 22
Download a file using an HTTPS proxy via environment variables - Ansible get_url and environment
How to automate the download of a file and verify the checksum using an HTTPS proxy with Ansible module get_url and "https_proxy" environment statement.
Jan 18, 22
Break a string over multiple lines - Ansible Literal and Folded Block Scalar operators
How to use multi-line YAML variables in Ansible using the "|", Literal Block Scalar, and the ">", Folded Block Scalar, operators. Plus how to elide the new line "\n" at the end of the line and print multi-line with debug module on a terminal.