Ansible Core 2.20 fixes
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
# tasks file for ensure_hostname
|
||||
- name: 'Set hostname if localhost'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_fqdn == 'localhost.localdomain'
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
- ansible_facts["fqdn"] == 'localhost.localdomain'
|
||||
ansible.builtin.hostname:
|
||||
name: '{{ inventory_hostname }}'
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user