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

9 lines
160 B
YAML
Raw Permalink Normal View History

2020-01-12 12:08:05 +00:00
---
- name: configure hosts file
template:
src: hosts.j2
dest: /etc/hosts
- name: configure hostname
hostname:
name: "{{ inventory_hostname }}"