Files @ a42e5683f4bc
Branch filter:

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

branko
MAR-218: Drop documentation references to only Python 3 being supported:

- The project is at this point only supporting Python 3, and all
modern distros support only Python 3 nowadays. No need to be
explicit anymore.
---

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

- name: Deploy WSGI application
  ansible.builtin.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: "0640"
  notify:
    - Restart wsgihello