From 3fe65482910e4a42a88c9824e14e8e91a9f1877e Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Tue, 12 Dec 2023 14:37:57 -0500 Subject: [PATCH] Skip updating cache for bionic Co-authored-by: Ryan Heuser --- roles/passenger/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/passenger/tasks/main.yml b/roles/passenger/tasks/main.yml index c4fc486c..9e74e502 100644 --- a/roles/passenger/tasks/main.yml +++ b/roles/passenger/tasks/main.yml @@ -54,6 +54,9 @@ become: true ansible.builtin.apt: update_cache: true + # update cache fails on bionic because postgres no longer has a release + # only update cache on newer VMs; skip updating on older vms + when: ansible_distribution_version != "18.04" # Nginx and passenger installation. - name: Install Nginx and Passenger.