-
add
<host_name>.yml
file for each of your hosts in/host_vars
directory -
add this line to every
<host_name>.yml
file:hostname: <desired_hostname>
ansible-playbook tasks/main.yml
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
add <host_name>.yml
file for each of your hosts in /host_vars
directory
add this line to every <host_name>.yml
file:
hostname: <desired_hostname>
ansible-playbook tasks/main.yml