From afa08c70d2b157ce09e04c05d6aac7027067969d Mon Sep 17 00:00:00 2001 From: Philippe MILINK Date: Tue, 27 Feb 2024 22:14:52 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20d'anciennes=20mentions=20=C3=A0?= =?UTF-8?q?=20Google=20Analytics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/app/defaults/main.yml | 5 ----- roles/app/tasks/main.yml | 12 ------------ roles/app/templates/config.toml.j2 | 3 --- 3 files changed, 20 deletions(-) diff --git a/roles/app/defaults/main.yml b/roles/app/defaults/main.yml index b74d0bc..2a7e547 100644 --- a/roles/app/defaults/main.yml +++ b/roles/app/defaults/main.yml @@ -1,10 +1,5 @@ apprepo: "https://github.com/zestedesavoir/zds-site.git" env: dev secrets: [] -google_analytics_api: - type: "service_account" - auth_uri: "https://accounts.google.com/o/oauth2/auth" - token_uri: "https://accounts.google.com/o/oauth2/token" - auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs" zmarkdown_sentry_dsn: "" load_fixtures: false diff --git a/roles/app/tasks/main.yml b/roles/app/tasks/main.yml index e63b844..8ee99a8 100644 --- a/roles/app/tasks/main.yml +++ b/roles/app/tasks/main.yml @@ -122,18 +122,6 @@ - bootstrap - upgrade -- name: create Google Analytics API secrets file - ansible.builtin.copy: - content: "{{ google_analytics_api | combine(secrets.google_analytics_api) | to_nice_json }}" - dest: "{{ appdir }}/api_analytics_secrets.json" - owner: "{{ appuser }}" - group: "{{ appuser }}" - mode: u=rw,g=r,o=r - when: secrets.google_analytics_api is defined - tags: - - bootstrap - - upgrade - - name: create webroot ansible.builtin.file: path: "{{ webroot }}" diff --git a/roles/app/templates/config.toml.j2 b/roles/app/templates/config.toml.j2 index a77beab..7ede62f 100644 --- a/roles/app/templates/config.toml.j2 +++ b/roles/app/templates/config.toml.j2 @@ -19,9 +19,6 @@ google_oauth2_secret = "{{ secrets.google.secret }}" {% endif %} [zds] -google_analytics_id = "UA-27730868-1" -google_tag_manager_id = "GTM-WH7642" - votes_id_limit = 131319 VOTES_ID_LIMIT = 131319 # Temporary fix