summaryrefslogtreecommitdiff
path: root/playbook.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'playbook.yaml')
-rw-r--r--playbook.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/playbook.yaml b/playbook.yaml
index 06f75e0..2c8ea28 100644
--- a/playbook.yaml
+++ b/playbook.yaml
@@ -61,6 +61,20 @@
mode: "0644"
become: true
+ - name: Ensure hostname is set
+ ansible.builtin.hostname:
+ name: "{{ hostname }}"
+ become: true
+
+ - name: Ensure hostname is configured in /etc/hosts
+ ansible.builtin.template:
+ src: "{{ playbook_dir }}/files/hosts.j2"
+ dest: /etc/hosts
+ owner: root
+ group: root
+ mode: "0644"
+ become: true
+
- name: Retrieve DANE hash
ansible.builtin.shell:
cmd: >