--- - import_role: name: _web_app - name: Restic Role import_role: name: restic tags: "restic_humhub" - name: "template {{ rev_proxy }}_app.j2 {{ app_instance_id }}" template: src: "{{ rev_proxy }}_app.j2" dest: "/etc/{{ rev_proxy }}/sites-available/{{ app_instance_id }}.conf" when: app_wsgi == "no" notify: reload {{ rev_proxy }} web_app tags: - garradin_rev_proxy - name: Check if app folder exists stat: path: "{{ app_instance_root }}" register: app_folder - name: Check if data folder exists stat: path: "{{ app_data }}" register: data_folder tags: "data_setup" - name: "dir {{ app_data }}" file: path: "{{ app_data }}" state: directory mode: 0700 group: "www-data" owner: "{{ app_user }}" when: data_folder.stat.exists == false and app_folder.stat.exists tags: "data_setup" - name: Configuring garradin if app folder exists import_tasks: configure.yml when: app_folder.stat.exists tags: - garradin_configure