manage_pip_packages/tasks/prerequisites.yml

22 lines
578 B
YAML

---
# task/prerequisites file for manage_pip_packages
- name: "Install required roles"
ansible.builtin.command:
cmd: "ansible-galaxy install {{ item }}"
loop: "{{ manage_pip_packages_prerequisites_roles }}"
changed_when: false
become: false
delegate_to: localhost
run_once: true
- name: "Install python3 and pip"
ansible.builtin.include_role:
name: ednxzu.manage_apt_packages
vars:
manage_apt_packages_list: "{{ manage_pip_packages_required_packages }}"
- name: "Update pip to latest"
ansible.builtin.pip:
name: pip
extra_args: --upgrade