Fix ansible-lint warnings

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2022-08-16 08:59:59 +02:00 committed by Jakub Jelen
parent 67d2339f03
commit 08285659ed
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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
}}