mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
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:
parent
3a6f941b2f
commit
e8fef16995
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
- name: Update NetworkManager
|
||||
package:
|
||||
name: NetworkManager
|
||||
state: latest
|
||||
state: latest # noqa package-latest
|
||||
- name: Restart NetworkManager
|
||||
service:
|
||||
name: NetworkManager
|
||||
|
|
|
|||
|
|
@ -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 }}'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue