From 2d39a9523aadb99299131a2a69d0240414cc1ed0 Mon Sep 17 00:00:00 2001 From: Kaitlyn Parkhurst Date: Fri, 9 Dec 2022 16:30:19 -0800 Subject: [PATCH] Ansible updates for use_plausible. --- ansible/env/example/inventory.yml | 3 +++ ansible/roles/mjb-profile-certbot/tasks/main.yml | 2 +- ansible/roles/mjb-role-webapp/templates/mjb.yml.j2 | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/env/example/inventory.yml b/ansible/env/example/inventory.yml index fda3a33..2e654eb 100644 --- a/ansible/env/example/inventory.yml +++ b/ansible/env/example/inventory.yml @@ -75,6 +75,9 @@ all: pass: "{{ vault_smtp_pass }}" panel_config: + # If the panel should use plausible for metrics. + use_plausible: 0 + # This repo is the initial repository cloned when somebody creates a new blog. jekyll_init_repo: git@store.example.com:manager/jekyll-default.git diff --git a/ansible/roles/mjb-profile-certbot/tasks/main.yml b/ansible/roles/mjb-profile-certbot/tasks/main.yml index a6cfd34..b8aaa1c 100644 --- a/ansible/roles/mjb-profile-certbot/tasks/main.yml +++ b/ansible/roles/mjb-profile-certbot/tasks/main.yml @@ -53,7 +53,7 @@ path: /etc/letsencrypt/.secrets/linode.ini owner: root group: root - mode: 0644 + mode: 0640 - name: "Populatge linode secrets" lineinfile: diff --git a/ansible/roles/mjb-role-webapp/templates/mjb.yml.j2 b/ansible/roles/mjb-role-webapp/templates/mjb.yml.j2 index cdba86f..f139a03 100644 --- a/ansible/roles/mjb-role-webapp/templates/mjb.yml.j2 +++ b/ansible/roles/mjb-role-webapp/templates/mjb.yml.j2 @@ -8,6 +8,8 @@ database: domain_for_links: {{ domain_name.panel }} +use_plausible: {{ panel_config.use_plausible }} + smtp: host: {{ smtp.host }} from: {{ smtp.from }}