Skip to content

Commit ae8746c

Browse files
committed
Generate SSH Keys on EL10
Signed-off-by: Martin Schurz <[email protected]>
1 parent e122229 commit ae8746c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

molecule/ssh_hardening/prepare.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777

7878
- name: Create ssh host keys # noqa ignore-errors
7979
ansible.builtin.command: ssh-keygen -A
80-
when: not ((ansible_facts.os_family in ['Oracle Linux', 'RedHat']) and ansible_facts.distribution_major_version < '7')
80+
when: not ((ansible_facts.os_family in ['Oracle Linux', 'RedHat'])
81+
and (ansible_facts.distribution_major_version < '7'
82+
or ansible_facts.distribution_major_version > '9' ))
8183
or ansible_facts.distribution == "Fedora"
8284
or ansible_facts.distribution == "Amazon"
8385
or ansible_facts.os_family == "Suse"

0 commit comments

Comments
 (0)