Ensure groups are sorted for known_hosts
This will help make ansible more idempotent. Change-Id: Ib6b01319125fbba0a43f9cdf2119aaf646b881db Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
66ccfe7744
commit
67d1711dbd
|
@ -1,7 +1,7 @@
|
|||
# This file is generated by Ansible
|
||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||
#
|
||||
{% for host in groups['all'] %}
|
||||
{% for host in groups['all']|sort %}
|
||||
{% if hostvars[host].ansible_host is defined %}
|
||||
{% if hostvars[host].ansible_ssh_host_key_ed25519_public is defined %}
|
||||
{{ hostvars[host].ansible_hostname }},{{ hostvars[host].ansible_host }} ssh-ed25519 {{ hostvars[host].ansible_ssh_host_key_ed25519_public }}
|
||||
|
|
Loading…
Reference in New Issue