Skip to content
Snippets Groups Projects
Verified Commit 86b3662c authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Fix sync-ssh-hostkeys task for Ubuntu

As repro3 is Ubuntu and it's default shell is dash, set -o pipefail is
not supported.
parent 4ac73329
No related branches found
No related tags found
No related merge requests found
Pipeline #805 passed
......@@ -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 }}#'"
args:
executable: /bin/bash # required for repro3.pkgbuild.com which is ubuntu and has dash as default shell
register: known_hosts
changed_when: known_hosts | length > 0
......
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