Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Commit

Permalink
add exception for hostkey-gen for fedora
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
  • Loading branch information
Sebastian Gumprich committed Apr 29, 2019
1 parent 71fe723 commit d906343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/default.yml
Expand Up @@ -15,7 +15,7 @@
- file: path="/var/run/sshd" state=directory
- name: create ssh host keys
command: "ssh-keygen -A"
when: not ((ansible_os_family in ['Oracle Linux', 'RedHat']) and ansible_distribution_major_version < '7')
when: not ((ansible_os_family in ['Oracle Linux', 'RedHat']) and ansible_distribution_major_version < '7') or ansible_distribution == "Fedora"

roles:
- ansible-ssh-hardening
2 changes: 1 addition & 1 deletion tests/default_custom.yml
Expand Up @@ -15,7 +15,7 @@
- file: path="/var/run/sshd" state=directory
- name: create ssh host keys
command: "ssh-keygen -A"
when: not ((ansible_os_family in ['Oracle Linux', 'RedHat']) and ansible_distribution_major_version < '7')
when: not ((ansible_os_family in ['Oracle Linux', 'RedHat']) and ansible_distribution_major_version < '7') or ansible_distribution == "Fedora"

roles:
- ansible-ssh-hardening
Expand Down

0 comments on commit d906343

Please sign in to comment.