Skip to content

Commit

Permalink
force /bin/sh when getting openssh-version
Browse files Browse the repository at this point in the history
(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.
  • Loading branch information
gtz42 committed Oct 9, 2017
1 parent a927903 commit b3f70e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

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

0 comments on commit b3f70e3

Please sign in to comment.