This commit is contained in:
parent
7a5e6a5a31
commit
b1b7542459
@ -1,2 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
python3_packages:
|
||||||
|
- python3
|
||||||
|
- python3-pip
|
||||||
python3_packages_extra: []
|
python3_packages_extra: []
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Install python 3 package
|
- name: Install Python3 packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
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 }}'
|
- name: Link binaries to '{{ __python3_link_bin_path }}'
|
||||||
file:
|
file:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
dest: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
||||||
state: link
|
state: link
|
||||||
|
force: yes
|
||||||
loop:
|
loop:
|
||||||
- { src: /bin/python3.6, dest: python3 }
|
- { src: /usr/bin/python3.6, dest: python3 }
|
||||||
|
- { src: /usr/bin/pip3.6, dest: pip3 }
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
label: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
||||||
become: True
|
become: True
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
---
|
---
|
||||||
__python3_packages:
|
|
||||||
- python3
|
|
||||||
- python3-pip
|
|
||||||
__python3_link_bin_path: /usr/bin
|
__python3_link_bin_path: /usr/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user