dotfiles/tasks/python.yml
Jake Howard ab945b0a48
Replace with_items for loop
It's the new way, apparently
2019-12-09 21:09:00 +00:00

20 lines
424 B
YAML

- name: "Install python packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
loop:
- 'pyenv'
- 'python-pip'
- 'python-virtualenv'
- 'python2-pip'
- 'python2-virtualenv'
- name: Create pyenv directory
file:
state: directory
path: '/opt/pyenv'
owner: "{{ user }}"
group: users