computer-playbook/roles/hostname/tasks/main.yml

4 lines
98 B
YAML

- name: set hostname to {{ inventory_hostname }}
hostname:
name: "{{ inventory_hostname }}"