Skip to content
Snippets Groups Projects
Commit c87c59a7 authored by nimrod's avatar nimrod
Browse files

- Install Python packages in a virtualenv.

parent 773fef59
No related branches found
No related tags found
No related merge requests found
......@@ -9,19 +9,31 @@
- pelican_gitreceive_output is defined
- name: APT install prerequisites
when: ansible_pkg_mgr == 'apt'
apt:
name: python-dev
name: [python-dev, libssl-dev, libffi-dev, build-essential]
state: present
update_cache: yes
cache_valid_time: 3600
- name: Create virtualenv directory
file:
path: /var/lib/pelican-gitreceive
owner: git
group: git
mode: 0o0700
state: directory
- name: pip install
become: True
become_user: git
with_items:
- pelican
- fabric
- Fabric
pip:
name: '{{ item }}'
state: present
virtualenv: /var/lib/pelican-gitreceive
- name: Create directory structure
file:
......
......@@ -4,8 +4,10 @@ echo Recieving blog...
tempdir="$(mktemp -d)"
cd $tempdir
tar -xf -
echo Fetching Git submodules
echo Fetching Git submodules...
git submodule update --init --recursive
echo Activating virtualenv...
. /var/lib/pelican-gitreceive/bin/activate
echo Building blog...
fab build
echo Syncing blog...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment