From cea077a704a9315b1676ea221e1c089650168dd2 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 27 Nov 2023 14:19:41 +0100 Subject: [PATCH] tests: The new manual pages have different indentation Signed-off-by: Jakub Jelen --- tests/tests_all_options.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests_all_options.yml b/tests/tests_all_options.yml index 08be499..d085c09 100644 --- a/tests/tests_all_options.yml +++ b/tests/tests_all_options.yml @@ -90,10 +90,10 @@ ansible.builtin.shell: >- set -o pipefail && man sshd_config \ | sed 's/\x08.//g' \ - | grep -o '^ [A-Z][A-Za-z0-9]*\(.\| \)' \ + | grep -o '^\( \| \)[A-Z][A-Za-z0-9]*\(.\| \)' \ | grep -v "[A-Za-z0-9] $" | grep -v "[^A-Za-z0-9 ]$" \ | awk '{ print $1 }' \ - | grep -v '^$' | grep -v "^Match$" + | grep -v '^$' | grep -v "^\(Match\|OpenSSH\|The\|Arguments\|Theo\)$" args: executable: /bin/bash register: sshd_options @@ -102,7 +102,7 @@ - name: Print all the possible options ansible.builtin.debug: - var: ssh_options.stdout_lines + var: sshd_options.stdout_lines - name: Construct the configuration list ansible.builtin.set_fact: