From d1eaa079180e5fee2f6ef28762834894e264cf13 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 4 Nov 2021 14:37:23 -0700 Subject: [PATCH] Don't set lodgeit db dir perms The mariadb container is overriding these and we can race ansible setting them back to root and the mariadb container starting up resulting in a sad database. Change-Id: Ib88f6aec83e73baf95a660165d13839f7baeed3d --- playbooks/roles/lodgeit/tasks/main.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/lodgeit/tasks/main.yaml b/playbooks/roles/lodgeit/tasks/main.yaml index 27f3c0af6f..a172aa569b 100644 --- a/playbooks/roles/lodgeit/tasks/main.yaml +++ b/playbooks/roles/lodgeit/tasks/main.yaml @@ -12,13 +12,14 @@ - name: Setup mariadb container block: + # NOTE(clarkb) This deliberately does not set owner/group/mode, as the + # mariadb container chowns this directory to be owned by a + # container-internal user and drops root privileges. We don't want to + # reset this from outside the container. - name: Setup db directory file: state: directory path: /var/lib/lodgeit/mariadb - owner: root - group: root - mode: 0755 - name: Set up root mariadb conf file template: