Skip to content

Commit

Permalink
Switch tor upgrade check from aptitude to apt
Browse files Browse the repository at this point in the history
Between the version of aptitude on Xenial and that on Focal, empty
searches started returning 1, causing `Check whether tor will be
upgraded` to fail. Replacing the aptitude search with `apt list
--upgradable tor` should work on both releases, and is more specific.
  • Loading branch information
rmol authored and Conor Schaefer committed Sep 14, 2020
1 parent 773012d commit 21b2369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
tags: apt

- name: Check whether tor will be upgraded.
command: aptitude search '~U' --display-format '%p' --disable-columns
command: apt list --upgradable tor
register: tor_upgradable_result
changed_when: false

Expand Down

0 comments on commit 21b2369

Please sign in to comment.