Skip to content
Snippets Groups Projects
Commit 10e395ba authored by nimrod's avatar nimrod
Browse files

Ansible: Some update fixes.

parent bc44c73f
No related branches found
No related tags found
No related merge requests found
......@@ -509,7 +509,7 @@
VERBOSESTATUS=0
syspatch -c
pkg_add -uInx | grep -v '^quirks'
fw_update -an | grep -v '^fw_update: added none; updated none;'
fw_update -an | grep -v '^fw_update: add none; update none;'
{{ "rcctl ls rogue" if ansible_distribution_version is version('7.1', '>=') }}
# yamllint enable rule:line-length
dest: /etc/daily.local
......
......@@ -27,9 +27,9 @@
- name: Update firmware
command: fwupdmgr --assume-yes update
register: fwupdmgr
changed_when: fwupdmgr.stdout_lines|length > 0
changed_when: fwupdmgr.rc == 0
# yamllint disable rule:line-length
failed_when: fwupdmgr.rc not in [0, 2] and "No updatable devices" not in fwupdmgr.stderr_lines
failed_when: fwupdmgr.rc not in [0, 2]
- name: Gather package facts
package_facts:
......@@ -109,7 +109,7 @@
command: fw_update -a
register: fw_update
changed_when: |-
"fw_update: added none; updated none;" not in fw_update.stdout
"fw_update: add none; update none;" not in fw_update.stdout
- name: Set reboot needed fact
set_fact:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment