Skip to content
Snippets Groups Projects
Unverified Commit 592d1896 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fix non-deterministic behavior of sync-ssh-hostkeys.yml

Fixes #196
parent 636613f4
No related branches found
No related tags found
1 merge request!124Fix non-deterministic behavior of sync-ssh-hostkeys.yml
......@@ -8,7 +8,7 @@
register: ssh_hostkeys
changed_when: ssh_hostkeys | length > 0
- name: fetch known_hosts
shell: "set -o pipefail && ssh-keyscan 127.0.0.1 2>/dev/null | sed 's#^127.0.0.1#{{ inventory_hostname }}#'"
shell: "set -o pipefail && ssh-keyscan 127.0.0.1 2>/dev/null | sed 's#^127.0.0.1#{{ inventory_hostname }}#' | sort"
args:
executable: /bin/bash # required for repro3.pkgbuild.com which is ubuntu and has dash as default shell
register: known_hosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment