Verified Commit 86b3662c authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
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
......@@ -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
......
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