ansible-lint: Fix no-jinja-when, yaml[line-legnth] and package-latest failures

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2023-03-02 10:33:26 -05:00 committed by Fernando Fernández Mancera
parent 3a6f941b2f
commit e8fef16995
3 changed files with 4 additions and 3 deletions

View file

@ -21,6 +21,8 @@ rules:
/tests/tests_ethtool_ring_initscripts.yml
/tests/tests_route_device_initscripts.yml
/tests/tests_team_plugin_installation_nm.yml
/tests/tests_wireless_plugin_installation_nm.yml

View file

@ -5,7 +5,7 @@
- name: Update NetworkManager
package:
name: NetworkManager
state: latest
state: latest # noqa package-latest
- name: Restart NetworkManager
service:
name: NetworkManager

View file

@ -40,8 +40,7 @@
- name: conditional asserts
include_tasks: "{{ item['what'] }}"
when:
- "{{ item['when'] }}"
when: item['when']
loop: "{{ lsr_assert_when|default([]) }}"
- name: "Success in test '{{ lsr_description }}'"