From 05f43fe4db03df4784e125f7d0d9e4b28899ae5b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 12 Oct 2021 16:21:48 +0200 Subject: [PATCH] Do not install the worker packages on Ubuntu 18.04+ --- tasks/apache.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/apache.yml b/tasks/apache.yml index d9e35dc..8b1bd72 100644 --- a/tasks/apache.yml +++ b/tasks/apache.yml @@ -7,7 +7,9 @@ - name: Install the apache modules packages apt: pkg={{ apache_modules_packages }} state={{ apache_pkg_state }} cache_valid_time=3600 - when: not apache_from_ppa + when: + - not apache_from_ppa + - when: ansible_distribution_version is version_compare('16.04', '<=') tags: [ 'apache', 'apache_additional_packages' ] - name: Install the apache additional packages, if any