xoxys.python3/tasks/setup.yml
Robert Kaussow b1b7542459
All checks were successful
continuous-integration/drone/push Build is passing
force binary symlinks
2019-11-24 16:07:02 +01:00

22 lines
616 B
YAML

---
- block:
- name: Install Python3 packages
package:
name: "{{ item }}"
state: present
loop: "{{ python3_packages_extra + python3_packages }}"
- name: Link binaries to '{{ __python3_link_bin_path }}'
file:
src: "{{ item.src }}"
dest: "{{ __python3_link_bin_path }}/{{ item.dest }}"
state: link
force: yes
loop:
- { src: /usr/bin/python3.6, dest: python3 }
- { src: /usr/bin/pip3.6, dest: pip3 }
loop_control:
label: "{{ __python3_link_bin_path }}/{{ item.dest }}"
become: True
become_user: root