hpc-cluster/ansible-ctdo/roles/hostname/tasks/main.yml

9 lines
160 B
YAML

---
- name: configure hosts file
template:
src: hosts.j2
dest: /etc/hosts
- name: configure hostname
hostname:
name: "{{ inventory_hostname }}"