Skip to content

Commit

Permalink
Merge pull request #550 from konstruktoid/cond
Browse files Browse the repository at this point in the history
fix conditional
  • Loading branch information
konstruktoid authored Feb 16, 2024
2 parents e572c36 + 024ce3f commit 389718b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/packagemgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
ansible.builtin.apt:
upgrade: safe
register: apt_upgrade_response
changed_when: apt_upgrade_response.stdout.find('0 upgraded') == -1 - system_upgrade | bool
changed_when:
- apt_upgrade_response.stdout.find('0 upgraded') == -1
when:
- system_upgrade | bool
notify:
- Run apt-get clean
- Run apt-get autoremove
Expand Down

0 comments on commit 389718b

Please sign in to comment.