forked from ISTI-ansible-roles/ansible-roles
Add python-lxml on Ubuntu bionic.
This commit is contained in:
parent
7def8df896
commit
d045eb53d1
|
@ -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'"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue