From d045eb53d1ae8a0c5a0d365f2dfd0836584f49ce Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 2 Apr 2019 17:13:27 +0200 Subject: [PATCH] Add python-lxml on Ubuntu bionic. --- ubuntu-deb-general/defaults/main.yml | 1 + ubuntu-deb-general/tasks/packages.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ubuntu-deb-general/defaults/main.yml b/ubuntu-deb-general/defaults/main.yml index a5659ad..80f9467 100644 --- a/ubuntu-deb-general/defaults/main.yml +++ b/ubuntu-deb-general/defaults/main.yml @@ -179,6 +179,7 @@ is_quantal: "'{{ ansible_distribution_release }}' == 'quantal'" is_natty: "'{{ ansible_distribution_release }}' == 'natty'" is_precise: "'{{ ansible_distribution_release }}' == 'precise'" is_trusty: "'{{ ansible_distribution_release }}' == 'trusty'" +is_bionic: "'{{ ansible_distribution_release }}' == 'bionic'" is_ubuntu: "'{{ ansible_distribution }}' == 'Ubuntu'" is_not_precise: "('{{ ansible_distribution }}' == 'Ubuntu' and {{ ansible_distribution_version }} != 12.04) or '{{ ansible_distribution }}' == 'Debian'" is_not_trusty: "('{{ ansible_distribution }}' == 'Ubuntu' and {{ ansible_distribution_version }} != 14.04) or '{{ ansible_distribution }}' == 'Debian'" diff --git a/ubuntu-deb-general/tasks/packages.yml b/ubuntu-deb-general/tasks/packages.yml index 0f2544a..0f91fcf 100644 --- a/ubuntu-deb-general/tasks/packages.yml +++ b/ubuntu-deb-general/tasks/packages.yml @@ -9,6 +9,11 @@ when: is_trusty tags: packages +- name: Install python-lxml on bionic + apt: pkg=python-lxml state=present update_cache=yes cache_valid_time=1800 + when: is_bionic + tags: packages + - name: Install software-properties-common if needed apt: pkg=software-properties-common state=present update_cache=yes cache_valid_time=1800 when: is_ubuntu