Files @ b55cb83f8342
Branch filter:

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

branko
Noticket: Added workaround to development process for outdated Molecule version:

- Unfortunately, the Molecule version used for running tests does not
generate valid Ruby 3.x code. For now just work around the way Hash
is unpacked in function calls to optional arguments (until the test
stack gets a revamp).
---

- 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