Files @ 277c561f3f52
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/tasks/requirements.yml - annotation

branko
MAR-28: Impelmented general and SMTP-related tests for mail_server:

- Increased amount of memory in test instances to 768MB.
- Fixed playbook for runs against client test instances.
- Fixed typos and invalid settings in test playbook.
- Switched to expanded syntax in tasks used for deploying TLS keys and
certificates in order to avoid mangling of TAB characters.
- Fixed missing permissions set-up for Postfix main configuration file.
- Fixed deployment of Postfix master.cf configuration file to take into account
configurable virtual mail user.
- Implemented tests covering SMTP functionality.
---

- name: Set-up directory for storing requirements file for upgrade checks
  file: path="/etc/pip_check_requirements_upgrades/{{ fqdn }}" state=directory
        owner="root" group="pipreqcheck" mode=750

- name: Deploy WSGI requirements files for upgrade checks
  template: src="{{ item }}.j2" dest="/etc/pip_check_requirements_upgrades/{{ fqdn }}/{{ item }}"
            owner="root" group="pipreqcheck" mode="640"
  with_items:
    - wsgi_requirements.in
    - wsgi_requirements.txt

- name: Deploy Gunicorn requirements file for installation purposes
  become_user: "{{ admin }}"
  template: src="wsgi_requirements.txt.j2" dest="{{ home }}/.wsgi_requirements.txt"
            owner="{{ admin }}" group="{{ user }}" mode="640"

- name: Install Gunicorn via requirements file
  become_user: "{{ admin }}"
  pip: requirements="{{ home }}/.wsgi_requirements.txt" state=present virtualenv="{{ home }}/virtualenv"
  notify:
    - "Restart website {{ fqdn }}"