initial commit

This commit is contained in:
Robert Kaussow 2018-11-27 22:58:22 +01:00
parent bd9370d666
commit 06317e1236
4 changed files with 26 additions and 0 deletions

0
defaults/main.yml Normal file
View File

2
tasks/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
- include_tasks: setup.yml

22
tasks/setup.yml Normal file
View File

@ -0,0 +1,22 @@
---
- block:
- name: Install python 3 package
package:
name: "{{ item }}"
state: present
with_items:
- python36
- name: Setup pip3
command: /bin/python3.6 -m ensurepip
- name: Link binaries to '__python3_link_bin_path'
file:
src: "{{ item.src }}"
dest: "{{ __python3_link_bin_path }}/{{ item.dest }}"
state: link
with_items:
- { src: /bin/python3.6, dest: python3 }
- { src: /usr/local/bin/pip3.6, dest: pip3 }
become: True
become_user: root

2
vars/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
__python3_link_bin_path: /usr/bin