Files @ 0f349663e20c
Branch filter:

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

branko
MAR-30: Fixes for multiple platforms and more extensive testing:

- Include instructions on how to run tests against different platforms (Debian
versions).
- Use correct base box for Debian Stretch when testing role 'preseed'.
- Use fixed hostnames when runnig teets for role 'preseed'.
- Make sure to test preseed configuration file when providing overrides for a
host that does not include overrides as well in role 'preseed'.
---

- 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 }}