Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
homelab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
homelab
Commits
714cf880
Commit
714cf880
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Skip Flatpak updates if Flatpak is not installed.
And remove the too broad ignore_errors.
parent
35c7598f
No related branches found
No related tags found
No related merge requests found
Pipeline
#937
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
update.yaml
+23
-19
23 additions, 19 deletions
update.yaml
with
23 additions
and
19 deletions
update.yaml
+
23
−
19
View file @
714cf880
...
...
@@ -29,17 +29,22 @@
register
:
fwupdmgr
changed_when
:
fwupdmgr.stdout_lines|length >
0
-
name
:
Gather package facts
package_facts
:
-
name
:
Update Flatpaks
when
:
|-
'flatpak' in ansible_facts.packages
block
:
-
name
:
Update Flatpaks appstream
command
:
cmd
:
flatpak update --appstream
ignore_errors
:
true
changed_when
:
false
-
name
:
Update Flatpaks
command
:
cmd
:
flatpak update --assumeyes
register
:
flatpak_update
ignore_errors
:
true
changed_when
:
|-
"Nothing to do" not in flatpak_update.stdout
...
...
@@ -47,7 +52,6 @@
command
:
cmd
:
flatpak uninstall --unused --assumeyes
register
:
flatpak_unused
ignore_errors
:
true
changed_when
:
|-
"Nothing" not in flatpak_unused.stdout
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment