From 59010c64ba05d06464c345c3772f182e92371f49 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 11 May 2023 19:56:02 +0200 Subject: [PATCH] fix: dubious ownership clone error --- roles/web1/tasks/main.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/roles/web1/tasks/main.yaml b/roles/web1/tasks/main.yaml index c289f3b..af18bd0 100644 --- a/roles/web1/tasks/main.yaml +++ b/roles/web1/tasks/main.yaml @@ -21,6 +21,17 @@ line: " flow.redirect_uri = url_for('_oidc_callback', _external=True, _scheme='https')" backup: yes +- name: Set owner in case git already exists and has bad ownership + file: + path: /var/www/{{ item }}/ + owner: root + group: root + recurse: true + with_items: + - python-flask-picture-factory + - simple-log-server + - soundlib-interface + - name: Set mode /usr/local/lib/ (python libraries) file: path: /usr/local/lib/ @@ -36,6 +47,17 @@ - simple-log-server - soundlib-interface +- name: Reset Ownership to www-data + file: + path: /var/www/{{ item }}/ + owner: www-data + group: www-data + recurse: true + with_items: + - python-flask-picture-factory + - simple-log-server + - soundlib-interface + - name: Deploy OIDC config (config) template: src: oidc_config.json.j2