26 lines
680 B
YAML
26 lines
680 B
YAML
---
|
|
- block:
|
|
- name: Install Python3 packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ python3_packages_extra + python3_packages }}"
|
|
|
|
- name: Remove other Python pckages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
loop: "{{ python3_packages_remove }}"
|
|
|
|
- name: Link binaries to '{{ python3_link_bin_path }}'
|
|
file:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ python3_link_bin_path }}/{{ item.dest }}"
|
|
state: link
|
|
force: yes
|
|
loop: "{{ python3_link_bin }}"
|
|
loop_control:
|
|
label: "{{ python3_link_bin_path }}/{{ item.dest }}"
|
|
become: True
|
|
become_user: root
|