tests: The new manual pages have different indentation

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2023-11-27 14:19:41 +01:00
parent 793cca4c97
commit cea077a704

View file

@ -90,10 +90,10 @@
ansible.builtin.shell: >- ansible.builtin.shell: >-
set -o pipefail && man sshd_config \ set -o pipefail && man sshd_config \
| sed 's/\x08.//g' \ | 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 ]$" \ | grep -v "[A-Za-z0-9] $" | grep -v "[^A-Za-z0-9 ]$" \
| awk '{ print $1 }' \ | awk '{ print $1 }' \
| grep -v '^$' | grep -v "^Match$" | grep -v '^$' | grep -v "^\(Match\|OpenSSH\|The\|Arguments\|Theo\)$"
args: args:
executable: /bin/bash executable: /bin/bash
register: sshd_options register: sshd_options
@ -102,7 +102,7 @@
- name: Print all the possible options - name: Print all the possible options
ansible.builtin.debug: ansible.builtin.debug:
var: ssh_options.stdout_lines var: sshd_options.stdout_lines
- name: Construct the configuration list - name: Construct the configuration list
ansible.builtin.set_fact: ansible.builtin.set_fact: