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

Commit 8817e28

Browse files
author
Sebastian Gumprich
committed
use sed isntead of perl
1 parent 7a01bd0 commit 8817e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- "{{ ansible_os_family }}.yml"
99

1010
- name: get openssh-version
11-
shell: ssh -V 2>&1 | perl -ne '/[\d\.]+/ && print $&'
11+
shell: ssh -V 2>&1 | sed -r 's/.*_([0-9]*\.[0-9]).*/\1/g'
1212
changed_when: false
1313
register: sshd_version
1414

0 commit comments

Comments
 (0)