Skip to content
Snippets Groups Projects
Commit 69543c22 authored by nimrod's avatar nimrod
Browse files

Stricter error catching for fwupdmgr.

parent 64f930b9
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
command: fwupdmgr --assume-yes update command: fwupdmgr --assume-yes update
register: fwupdmgr register: fwupdmgr
changed_when: fwupdmgr.stdout_lines|length > 0 changed_when: fwupdmgr.stdout_lines|length > 0
ignore_errors: true # yamllint disable rule:line-length
failed_when: fwupdmgr.rc not in [0, 2] and "No updatable devices" not in fwupdmgr.stderr_lines
- name: Gather package facts - name: Gather package facts
package_facts: package_facts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment