2017-05-27 05:09:47 +02:00
|
|
|
---
|
2023-08-11 10:24:46 +02:00
|
|
|
- name: Remove externally managed from Debian 12
|
|
|
|
ansible.builtin.import_tasks: debian12.yml
|
2023-08-11 10:27:36 +02:00
|
|
|
when:
|
|
|
|
- ansible_distribution == "Debian"
|
2023-10-28 05:59:33 +02:00
|
|
|
- ansible_distribution_major_version|int >= 12
|
2023-08-07 15:22:46 +02:00
|
|
|
|
2017-05-27 05:09:47 +02:00
|
|
|
- name: Ensure Pip is installed.
|
2017-11-14 13:28:48 +01:00
|
|
|
package:
|
2017-12-20 06:58:00 +01:00
|
|
|
name: "{{ pip_package }}"
|
2017-11-14 13:28:48 +01:00
|
|
|
state: present
|
2017-05-27 05:09:47 +02:00
|
|
|
|
2018-09-10 02:01:25 +02:00
|
|
|
- name: Ensure pip_install_packages are installed.
|
|
|
|
pip:
|
|
|
|
name: "{{ item.name | default(item) }}"
|
|
|
|
version: "{{ item.version | default(omit) }}"
|
|
|
|
virtualenv: "{{ item.virtualenv | default(omit) }}"
|
|
|
|
state: "{{ item.state | default(omit) }}"
|
2022-08-25 15:22:26 +02:00
|
|
|
extra_args: "{{ item.extra_args | default(omit) }}"
|
2018-11-07 13:25:31 +01:00
|
|
|
executable: "{{ pip_executable }}"
|
2021-01-26 21:58:56 +01:00
|
|
|
loop: "{{ pip_install_packages }}"
|