20 lines
572 B
YAML
20 lines
572 B
YAML
---
|
|
- block:
|
|
- name: Install python 3 package
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ python3_packages_extra + python3_packages | default(__python3_packages) }}"
|
|
|
|
- name: Link binaries to '{{ __python3_link_bin_path }}'
|
|
file:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
|
state: link
|
|
loop:
|
|
- { src: /bin/python3.6, dest: python3 }
|
|
loop_control:
|
|
label: "{{ __python3_link_bin_path }}/{{ item.dest }}"
|
|
become: True
|
|
become_user: root
|