force binary symlinks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-11-24 16:07:02 +01:00
parent 7a5e6a5a31
commit b1b7542459
3 changed files with 9 additions and 7 deletions

View File

@ -1,2 +1,5 @@
---
python3_packages:
- python3
- python3-pip
python3_packages_extra: []

View File

@ -1,18 +1,20 @@
---
- block:
- name: Install python 3 package
- name: Install Python3 packages
package:
name: "{{ item }}"
state: present
loop: "{{ python3_packages_extra + python3_packages | default(__python3_packages) }}"
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: /bin/python3.6, dest: python3 }
- { 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

View File

@ -1,5 +1,2 @@
---
__python3_packages:
- python3
- python3-pip
__python3_link_bin_path: /usr/bin