0
0
vps-set-up-playbook/roles/hostname/tasks/main.yaml
2024-06-07 00:13:14 +08:00

4 lines
131 B
YAML

- name: Set hostname
command: "hostnamectl set-hostname {{ inventory_hostname }}"
when: inventory_hostname in groups["oracle"]