mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 12:30:19 +01:00
Fix ansible-lint warnings
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
67d2339f03
commit
08285659ed
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
- name: OS is supported
|
||||
ansible.builtin.meta: end_host
|
||||
when:
|
||||
- not __sshd_os_supported|bool
|
||||
- not __sshd_os_supported | bool
|
||||
|
||||
- name: Install ssh packages
|
||||
ansible.builtin.package:
|
||||
|
@ -18,7 +18,7 @@
|
|||
mode: "600"
|
||||
backup: "{{ sshd_backup }}"
|
||||
when:
|
||||
- sshd_sysconfig|bool
|
||||
- sshd_sysconfig | bool
|
||||
- __sshd_sysconfig_supports_use_strong_rng or __sshd_sysconfig_supports_crypto_policy
|
||||
notify: reload_sshd
|
||||
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
vars:
|
||||
ansible_distribution_lts_offset: >-
|
||||
{{
|
||||
ansible_distribution_major_version|int % 2
|
||||
ansible_distribution_major_version | int % 2
|
||||
if ansible_distribution == "Ubuntu"
|
||||
else 0
|
||||
}}
|
||||
ansible_distribution_lts_version: >-
|
||||
{{
|
||||
ansible_distribution_major_version|int -
|
||||
ansible_distribution_lts_offset|int
|
||||
ansible_distribution_major_version | int -
|
||||
ansible_distribution_lts_offset | int
|
||||
if ansible_distribution == "Ubuntu"
|
||||
else ansible_distribution_version
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue