Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
13b5367d
Unverified
Commit
13b5367d
authored
Oct 26, 2020
by
Jakub Klinkovský
Browse files
Set LC_COLLATE for the ssh-keyscan command
Just in case, locales are complicated...
parent
592d1896
Changes
1
Hide whitespace changes
Inline
Side-by-side
playbooks/tasks/sync-ssh-hostkeys.yml
View file @
13b5367d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment