From 8134080cf8fd68bdb38c81bb4817d4debf798d93 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Thu, 22 Sep 2022 12:41:15 +0200 Subject: [PATCH] Use the uid and gid of the user. Default email address for admin. --- defaults/main.yml | 2 +- tasks/main.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index d6628cf..48a79a3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,7 +9,7 @@ plausible_smtp_password: # Plausible parameters plausible_port: 8000 -plausible_admin_user_email: change-me +plausible_admin_user_email: changeme@example.com plausible_admin_user_name: change-me plausible_admin_user_pwd: change-me plausible_base_url: change-me diff --git a/tasks/main.yml b/tasks/main.yml index c2d7b76..ef82f14 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,8 +11,9 @@ ansible.builtin.file: state: directory path: "{{ item }}" - owner: "{{ ansible_user_id }}" - mode: 0750 + owner: "{{ ansible_effective_user_id }}" + group: "{{ ansible_effective_group_id }}" + mode: 0750 with_items: - "{{ plausible_volume_config }}" - "{{ plausible_volume_events }}" @@ -48,7 +49,7 @@ ansible.builtin.copy: src: "{{ item }}" dest: "{{ plausible_volume_config }}/{{ item }}" - mode: '0640' + mode: '0644' loop: - "clickhouse-config.xml" - "clickhouse-user-config.xml"