Add 'roles/ensure_hostname/' from commit 'c4e969b6c934a21cc40a95c276771aa14466e303'

git-subtree-dir: roles/ensure_hostname
git-subtree-mainline: dd10aa41f2
git-subtree-split: c4e969b6c9
This commit is contained in:
2026-05-10 21:27:06 -05:00
10 changed files with 370 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
---
# tasks file for ensure_hostname
- name: 'Set hostname if localhost'
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["fqdn"] == 'localhost.localdomain'
ansible.builtin.hostname:
name: '{{ inventory_hostname }}'
...