Unverified Commit 13b5367d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Set LC_COLLATE for the ssh-keyscan command

Just in case, locales are complicated...
parent 592d1896
......@@ -9,6 +9,8 @@
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 }}#' | sort"
environment:
LC_COLLATE: C # to ensure reproducible ordering
args:
executable: /bin/bash # required for repro3.pkgbuild.com which is ubuntu and has dash as default shell
register: known_hosts
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment