5 lines
132 B
YAML
5 lines
132 B
YAML
- name: Set hostname
|
|
command: "hostnamectl set-hostname {{ inventory_hostname }}"
|
|
when:
|
|
- inventory_hostname != 'localhost'
|