k3s-ansible/roles/node/tasks/hostnames.yml

12 lines
222 B
YAML
Raw Permalink Normal View History

2024-11-23 21:46:13 +00:00
- name: Set hostname
ansible.builtin.template:
src: etc-hostname.j2
dest: /etc/hostname
mode: "0644"
- name: Set hosts
ansible.builtin.template:
src: etc-hosts.j2
dest: /etc/hosts
mode: "0644"