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

4 lines
98 B
YAML

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