Files @ 796d87f58565
Branch filter:

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

branko
MAR-218: Fix the custom m_ldap_permissions module to work correctly with ansible-lint:

- In order for things to behave correctly, module should not invoke
the main part of code automatically during import, but only if run
via CLI.
- Without this the ansible-lint kept erroring out with:

"missing required arguments: filter, rules"
---

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