Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
592d1896
Unverified
Commit
592d1896
authored
Oct 26, 2020
by
Jakub Klinkovský
Browse files
Fix non-deterministic behavior of sync-ssh-hostkeys.yml
Fixes
#196
parent
636613f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
playbooks/tasks/sync-ssh-hostkeys.yml
View file @
592d1896
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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