Answers for "ansible host file with hostname"

1

ansible choose host file

# Default host file
/etc/ansible/hosts

# Choose different host file
-i <path>
Posted by: Guest on June-11-2021
0

when hostname ansible

# Use Special Variable inventory_hostname
when: inventory_hostname == 'your_inventory_name'
Posted by: Guest on August-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language