Merge branch 'master' of adellam/ansible-roles into master

This commit is contained in:
Andrea Dell'Amico 2019-06-11 19:16:20 +02:00 committed by Gitea
commit 0194644c70
1 changed files with 6 additions and 3 deletions

View File

@ -3,6 +3,11 @@
- name: Install the python 3 ppa repository - name: Install the python 3 ppa repository
apt_repository: repo={{ py3_ppa }} update_cache=yes state=present apt_repository: repo={{ py3_ppa }} update_cache=yes state=present
when:
- py3_env_install
- ansible_distribution_version is version_compare('18.04', '<')
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3' ]
- name: Install the python3 deb packages - name: Install the python3 deb packages
apt: name={{ py3_env_dpkg }} state={{ py3_env_pkgs_state }} update_cache=yes cache_valid_time=600 apt: name={{ py3_env_dpkg }} state={{ py3_env_pkgs_state }} update_cache=yes cache_valid_time=600
@ -16,8 +21,6 @@
pip: executable=pip{{ py3_env_version }} name={{ item.pkg }} version={{ item.version }} pip: executable=pip{{ py3_env_version }} name={{ item.pkg }} version={{ item.version }}
with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}' with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}'
when: when: py3_env_install
- py3_env_install
- is_trusty
tags: [ "python", "py3_env", "py3_env_pkgs", 'python3' ] tags: [ "python", "py3_env", "py3_env_pkgs", 'python3' ]