Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Prepare
- hosts: all
- gather_facts: false
- tasks:
- - name: Install python3
- apt:
- name: "{{ packages }}"
- vars:
- packages:
- - python3-minimal
- - python3-zipstream
- - python3-setuptools
- - python3-pip
- become: true
- - name: use python3 by default
- alternatives:
- name: python
- link: /usr/bin/python
- path: /usr/bin/python3
- - name: use pip3 by default
- alternatives:
- name: pip
- link: /usr/bin/pip
- path: /usr/bin/pip3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement