0
0
vps-set-up-playbook/roles/hostname/tasks/main.yaml
2024-11-10 12:42:32 +08:00

5 lines
132 B
YAML

- name: Set hostname
command: "hostnamectl set-hostname {{ inventory_hostname }}"
when:
- inventory_hostname != 'localhost'