dotfiles/tasks/python.yml

21 lines
430 B
YAML
Raw Normal View History

2019-03-14 21:34:29 +00:00
- name: "Install python packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'pyenv'
- 'python-pip'
- 'python-virtualenv'
- 'python2-pip'
- 'python2-virtualenv'
2019-05-25 16:50:09 +01:00
- name: Create pyenv directory
file:
2019-03-14 21:34:29 +00:00
state: directory
path: '/opt/pyenv'
owner: "{{ user }}"
group: users