This commit is contained in:
parent
7a5e6a5a31
commit
b1b7542459
@ -1,2 +1,5 @@
|
||||
---
|
||||
python3_packages:
|
||||
- python3
|
||||
- python3-pip
|
||||
python3_packages_extra: []
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,2 @@
|
||||
---
|
||||
__python3_packages:
|
||||
- python3
|
||||
- python3-pip
|
||||
__python3_link_bin_path: /usr/bin
|
||||
|
Loading…
Reference in New Issue
Block a user