forked from gergely/calendar-social
Add Vagrant related files
This commit is contained in:
22
ansible/roles/python/tasks/main.yml
Normal file
22
ansible/roles/python/tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
|
||||
- name: Install common python packages
|
||||
dnf:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- pipenv
|
||||
|
||||
- name: Delete Python cache files
|
||||
command: find . -type d -name __pycache__ -exec rm -r {} +
|
||||
args:
|
||||
chdir: "{{ project_path }}"
|
||||
changed_when: false
|
||||
|
||||
- name: Install packages
|
||||
command: pipenv install --python=/usr/bin/python3.6m --three --system --deploy
|
||||
|
||||
- name: Install development related packages
|
||||
command: pipenv install --python=/usr/bin/python3.6m --three --system --deploy --dev
|
||||
args:
|
||||
chdir: "{{ project_path }}"
|
Reference in New Issue
Block a user