From 07bb64b2944b2ff424e1972a644d7aabe2d7df7d Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Fri, 19 Sep 2025 12:09:59 -0600 Subject: [PATCH] test: only reinstall openssh-clients if necessary Do not attempt to reinstall openssh-clients to get the docs if already configured to install the docs. Signed-off-by: Rich Megginson --- tests/tests_all_options.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests_all_options.yml b/tests/tests_all_options.yml index 28d4f62..1c4955c 100644 --- a/tests/tests_all_options.yml +++ b/tests/tests_all_options.yml @@ -43,12 +43,14 @@ if ansible_facts['distribution_version'] | int > 7 else '/etc/yum.conf' }}" state: absent + register: __ssh_nodocs when: - ansible_facts['os_family'] == "RedHat" - name: Reinstall manual pages for openssh-clients on RHEL ansible.builtin.command: "{{ pkg_mgr }} reinstall -y openssh-clients" when: + - __ssh_nodocs is changed - ansible_facts['os_family'] == "RedHat" - not __ssh_is_ostree | bool changed_when: true