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
|
# tasks file for ensure_hostname
|
||||||
- name: 'Set hostname if localhost'
|
- name: 'Set hostname if localhost'
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_facts["system"] == 'Linux'
|
||||||
- ansible_fqdn == 'localhost.localdomain'
|
- ansible_facts["fqdn"] == 'localhost.localdomain'
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
name: '{{ inventory_hostname }}'
|
name: '{{ inventory_hostname }}'
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user