Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit b3f70e3

Browse files
committed
force /bin/sh when getting openssh-version
(since the update to ansible 2.4.0.0) the C shell is used on FreeBSD to run shell tasks. This breakes the redirect. Forcing /bin/sh fixes this.
1 parent a927903 commit b3f70e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
- name: get openssh-version
1111
shell: ssh -V 2>&1 | sed -r 's/.*_([0-9]*\.[0-9]).*/\1/g'
12+
args:
13+
executable: /bin/sh
1214
changed_when: false
1315
register: sshd_version
1416
check_mode: no

0 commit comments

Comments
 (0)