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