xoxys.python3/tasks/setup.yml

26 lines
680 B
YAML
Raw Normal View History

2018-11-27 21:58:22 +00:00
---
- block:
2019-11-24 15:07:02 +00:00
- name: Install Python3 packages
2018-11-27 21:58:22 +00:00
package:
name: "{{ item }}"
state: present
2019-11-24 15:07:02 +00:00
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 }}'
2018-11-27 21:58:22 +00:00
file:
src: "{{ item.src }}"
dest: "{{ python3_link_bin_path }}/{{ item.dest }}"
2018-11-27 21:58:22 +00:00
state: link
2019-11-24 15:07:02 +00:00
force: yes
loop: "{{ python3_link_bin }}"
2018-11-27 22:08:05 +00:00
loop_control:
label: "{{ python3_link_bin_path }}/{{ item.dest }}"
2018-11-27 21:58:22 +00:00
become: True
become_user: root