mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-09-20 07:21:31 +02:00
Do not attempt to create and verify sysconfig on unrelated systems
This commit is contained in:
parent
48dc56b2d2
commit
425400d521
2 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@
|
||||||
backup: "{{ sshd_backup }}"
|
backup: "{{ sshd_backup }}"
|
||||||
when:
|
when:
|
||||||
- sshd_sysconfig|bool
|
- sshd_sysconfig|bool
|
||||||
|
- __sshd_sysconfig_supports_use_strong_rng or __sshd_sysconfig_supports_crypto_policy
|
||||||
notify: reload_sshd
|
notify: reload_sshd
|
||||||
|
|
||||||
- name: Make sure hostkeys are available and have expected permissions
|
- name: Make sure hostkeys are available and have expected permissions
|
||||||
|
|
|
@ -43,10 +43,10 @@
|
||||||
# these are string variants in default configuration file
|
# these are string variants in default configuration file
|
||||||
- "'SSH_USE_STRONG_RNG=0' not in config.content | b64decode"
|
- "'SSH_USE_STRONG_RNG=0' not in config.content | b64decode"
|
||||||
- "'# SSH_USE_STRONG_RNG=1' not in config.content | b64decode"
|
- "'# SSH_USE_STRONG_RNG=1' not in config.content | b64decode"
|
||||||
|
tags: tests::verify
|
||||||
when:
|
when:
|
||||||
- ansible_facts['os_family'] == "RedHat"
|
- ansible_facts['os_family'] == "RedHat"
|
||||||
- ansible_facts['distribution'] != 'Fedora'
|
- ansible_facts['distribution'] != 'Fedora'
|
||||||
tags: tests::verify
|
|
||||||
|
|
||||||
- name: "Restore configuration files"
|
- name: "Restore configuration files"
|
||||||
include_tasks: tasks/restore.yml
|
include_tasks: tasks/restore.yml
|
||||||
|
|
Loading…
Reference in a new issue