From 21b2369dae9bc7a950120f3c6538a4b476f3e94e Mon Sep 17 00:00:00 2001 From: John Hensley Date: Mon, 14 Sep 2020 17:06:05 -0400 Subject: [PATCH] Switch tor upgrade check from aptitude to apt 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. --- install_files/ansible-base/roles/common/tasks/apt_upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_files/ansible-base/roles/common/tasks/apt_upgrade.yml b/install_files/ansible-base/roles/common/tasks/apt_upgrade.yml index 0c7a5c1a70a..d605bd3e1aa 100644 --- a/install_files/ansible-base/roles/common/tasks/apt_upgrade.yml +++ b/install_files/ansible-base/roles/common/tasks/apt_upgrade.yml @@ -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