From e10edc362c52a417e664429147a02dc689aa39b2 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 7 Jan 2024 19:36:02 +0100 Subject: [PATCH] Fix file permissions --- roles/apps/tasks/extra_tasks/monerod.yml | 1 + roles/postgresql/tasks/main.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/apps/tasks/extra_tasks/monerod.yml b/roles/apps/tasks/extra_tasks/monerod.yml index 420c926..d865c6b 100644 --- a/roles/apps/tasks/extra_tasks/monerod.yml +++ b/roles/apps/tasks/extra_tasks/monerod.yml @@ -5,5 +5,6 @@ ansible.builtin.file: path: "{{ apps_data_root }}/monerod/data/bitmonero" owner: '1000' + group: '1000' mode: u=rwx,g=rx,o=rx state: directory diff --git a/roles/postgresql/tasks/main.yml b/roles/postgresql/tasks/main.yml index 1aa1dcd..ffdb647 100644 --- a/roles/postgresql/tasks/main.yml +++ b/roles/postgresql/tasks/main.yml @@ -71,6 +71,7 @@ src: postgresql.conf.j2 dest: "{{ postgresql_pgdata }}/postgresql.conf" owner: postgres + group: postgres mode: u=rw,go= notify: Reload PostgreSQL @@ -79,6 +80,7 @@ src: pg_hba.conf.j2 dest: "{{ postgresql_pgdata }}/pg_hba.conf" owner: postgres + group: postgres mode: u=rw,go= notify: Reload PostgreSQL