Set the hostname.
-
hostname: '{{ inventory_hostname }}'
Specifies the hostname to set on the server. Defaults to the inventory_hostname, specified in the inventory.
- hosts: servers
roles:
- hostname
BSD
Adam Herzog adam@adamherzog.com
Set the hostname.
hostname: '{{ inventory_hostname }}'
Specifies the hostname to set on the server. Defaults to the inventory_hostname, specified in the inventory.
- hosts: servers
roles:
- hostname
BSD
Adam Herzog adam@adamherzog.com