0
0
vps-set-up-playbook/roles/hostname/tasks/main.yaml

4 lines
131 B
YAML
Raw Normal View History

2023-11-13 11:47:39 +08:00
- name: Set hostname
command: "hostnamectl set-hostname {{ inventory_hostname }}"
2024-06-07 00:13:14 +08:00
when: inventory_hostname in groups["oracle"]