Skip to content

Commit 2ce66f5

Browse files
committed
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 <[email protected]>
1 parent d864021 commit 2ce66f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests_all_options.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@
4343
if ansible_facts['distribution_version'] | int > 7
4444
else '/etc/yum.conf' }}"
4545
state: absent
46+
register: __ssh_nodocs
4647
when:
4748
- ansible_facts['os_family'] == "RedHat"
4849

4950
- name: Reinstall manual pages for openssh-clients on RHEL
5051
ansible.builtin.command: "{{ pkg_mgr }} reinstall -y openssh-clients"
5152
when:
53+
- __ssh_nodocs is changed
5254
- ansible_facts['os_family'] == "RedHat"
5355
- not __ssh_is_ostree | bool
5456
changed_when: true

0 commit comments

Comments
 (0)