Files
@ 71bc6c4991f8
Branch filter:
Location: majic-ansible-roles/roles/backup_server/molecule/default/prepare.yml - annotation
71bc6c4991f8
669 B
text/x-yaml
MAR-132: Fix virtual environment set-up in wsgi_website role:
- Install more up-to-date version of pip. This fixes some issues
related to pip freeze detecting argparse and wsgiref in virtualenv
as separate packages.
- Remove the pkg-resources package from virtualenv. Workaround for
Debian-specific behaviour. More details at:
- https://github.com/pypa/pip/issues/4022
- https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871790
- Deploy Gunicorn requirements file without switching to website admin
user (otherwise Ansible fails to template the file due to
permissions restrictions).
- Updated test for checking packages installed in the virtualenv.
- Install more up-to-date version of pip. This fixes some issues
related to pip freeze detecting argparse and wsgiref in virtualenv
as separate packages.
- Remove the pkg-resources package from virtualenv. Workaround for
Debian-specific behaviour. More details at:
- https://github.com/pypa/pip/issues/4022
- https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871790
- Deploy Gunicorn requirements file without switching to website admin
user (otherwise Ansible fails to template the file due to
permissions restrictions).
- Updated test for checking packages installed in the virtualenv.
ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f 55d6b2e2f4f3 ef201fa5ec5f ef201fa5ec5f 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 8f3635c67934 ef201fa5ec5f 55d6b2e2f4f3 ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f 55d6b2e2f4f3 55d6b2e2f4f3 ef201fa5ec5f ef201fa5ec5f ef201fa5ec5f 55d6b2e2f4f3 | ---
- name: Prepare
hosts: all
gather_facts: false
tasks:
- hosts: localhost
connection: local
tasks:
- name: Fix SSH client file permissions locally, otherwise we get error from SSH
file:
path: "{{ item }}"
mode: g=,o=
with_items:
- tests/data/ssh/client1
- tests/data/ssh/client2
- hosts: all
become: true
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
become: true
changed_when: false
- name: Update all caches to avoid errors due to missing remote archives
apt:
update_cache: true
|