Add 'roles/ensure_hostname/' from commit 'ff4effc62c3643cdefb0b819e76185cdaa4a2164'
git-subtree-dir: roles/ensure_hostname git-subtree-mainline:75a6f350d2git-subtree-split:ff4effc62c
This commit is contained in:
@@ -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 }}'
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user