Files @ eba5d5d69e4f
Branch filter:

Location: majic-ansible-roles/testsite/playbooks/roles/wsgihello/tasks/main.yml - annotation

branko
MAR-114: Moved set_fact for wsgi_website and php_website roles:

- Moved set_fact for setting application admin, user, and home directory into
defaults/main.yml.
- Updated test playbook for wsgi_website to fixate the ptpython and dnspython
versions (including their dependencies).
- Updated tests for wsgi_website to use new fixated versions for ptpython,
dnspython, and their dependencies.
---

- name: Create directroy for storing code
  file: dest="/var/www/wsgi.{{ testsite_domain }}/code/" state=directory
        owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=2750

- name: Deploy WSGI application
  copy: src="hello.wsgi" dest="/var/www/wsgi.{{ testsite_domain }}/code/wsgi.py"
        owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=640
  notify:
    - Restart website wsgi.{{ testsite_domain }}