Skip to content

Commit

Permalink
Merge pull request #449 from gibizer/ctlplane_ip-known-hosts
Browse files Browse the repository at this point in the history
[edpm_ssh_known_hosts]Ensure host IP is added
  • Loading branch information
openshift-ci[bot] authored Oct 16, 2023
2 parents 1f52108 + 77fe6c8 commit 4fe59b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/edpm_ssh_known_hosts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
{% if 'canonical_hostname' in hostdata %}
{% set _ = entries.append(hostdata['canonical_hostname']) %}
{% endif %}
{% if 'ctlplane_ip' in hostdata %}
{% set _ = entries.append(hostdata['ctlplane_ip']) %}
{% endif %}
{% set _ = entries.append(host ~ '*') %}
{% if 'ansible_port' in hostdata and hostdata['ansible_port']|int != 22 %}
{% set hosts = [] %}
Expand Down

0 comments on commit 4fe59b1

Please sign in to comment.