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 - name: OS is supported
ansible.builtin.meta: end_host ansible.builtin.meta: end_host
when: when:
- not __sshd_os_supported|bool - not __sshd_os_supported | bool
- name: Install ssh packages - name: Install ssh packages
ansible.builtin.package: ansible.builtin.package:
@ -18,7 +18,7 @@
mode: "600" mode: "600"
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 - __sshd_sysconfig_supports_use_strong_rng or __sshd_sysconfig_supports_crypto_policy
notify: reload_sshd notify: reload_sshd

View file

@ -7,14 +7,14 @@
vars: vars:
ansible_distribution_lts_offset: >- ansible_distribution_lts_offset: >-
{{ {{
ansible_distribution_major_version|int % 2 ansible_distribution_major_version | int % 2
if ansible_distribution == "Ubuntu" if ansible_distribution == "Ubuntu"
else 0 else 0
}} }}
ansible_distribution_lts_version: >- ansible_distribution_lts_version: >-
{{ {{
ansible_distribution_major_version|int - ansible_distribution_major_version | int -
ansible_distribution_lts_offset|int ansible_distribution_lts_offset | int
if ansible_distribution == "Ubuntu" if ansible_distribution == "Ubuntu"
else ansible_distribution_version else ansible_distribution_version
}} }}