reduce to one play

This commit is contained in:
Patrick Dreher 2021-11-19 01:55:40 +01:00
parent 9deaed1a78
commit ff64f67953
1 changed files with 0 additions and 39 deletions

View File

@ -29,42 +29,3 @@
roles:
- role: geerlingguy.pip
- name: Converge with virtualenvs
hosts: all
become: true
vars:
# set virtualenv for all packages
pip_virtualenv: /venv
# install another package as dependency
pip_virtualenv_packages:
- virtualenv
- python3-venv
pip_umask: "0022"
pip_install_packages:
# Install into the default virtualenv
- colorama
# Install into a different virtualenv
- name: pip-install-test
virtualenv: /anothervenv
# Install the same package in yet another virtualenv created with a different command
- name: pip-install-test
version: 0.5.0
virtualenv: /yetanothervenv
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Set package name for older OSes.
set_fact:
pip_package: python-pip
when: >
(ansible_os_family == 'RedHat') and (ansible_distribution_major_version | int < 8)
or (ansible_distribution == 'Debian') and (ansible_distribution_major_version | int < 10)
or (ansible_distribution == 'Ubuntu') and (ansible_distribution_major_version | int < 18)
roles:
- role: geerlingguy.pip