Ansible Pilot
About
Contact
Book
Video
Articles
variables
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.
#ansible
#copy
#module
#linux
#template
#centos
#fedora
#ubuntu
#variables
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?
#ansible
#terminology
#ansible_hostname
#inventory_hostname
#ansible_fqdn
#variables
#ansible-internal
#tricks
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.
#ansible
#environment
#statement
#linux
#variables
#remote
#permanent
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.
#ansible
#environment
#statement
#linux
#variables
#proxy
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.
#ansible
#environment
#statement
#linux
#variables
#proxy
#https
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.
#ansible
#debug
#module
#code
#variables
#playbook
#syntax
Aug 3, 21
Print text or variable during execution - Ansible module debug
Some real-life examples from print “Hello world!”, print a text, print a variable, print a combination of text and variable and set the verbosity level.
#ansible
#debug
#module
#text
#variable
#variables
Red Hat Security Bulletin
FREE Top 10 Best Practices of Ansible Automation: save time, reduce errors and stress
Follow me
Subscribe not to miss any new releases
Search
Results
No results found
Try adjusting your search query
x
x