From 460c9d486574fa99a2420daae59ede7b29111fa1 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Tue, 22 Sep 2020 16:13:12 -0400 Subject: [PATCH 1/2] Add daemon_reload to mongodb systemd configuration This was necessary to avoid errors that were appearing on my installation. This fix was suggested here: https://github.com/Stouts/Stouts.mongodb/issues/36 --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 28f6251..62f2937 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -57,5 +57,6 @@ systemd: name: mongod enabled: true + daemon_reload: true become: true become_user: root From 3434e8d32bd1ec03f0681a9120822ab470192299 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Wed, 23 Sep 2020 10:19:40 -0400 Subject: [PATCH 2/2] Add daemon_reload when restarting the service --- handlers/main.yml | 1 + tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 4663bb5..2d2e505 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -2,6 +2,7 @@ - name: Restart MongoDB systemd: name: mongod + daemon_reload: true state: restarted become: true become_user: root diff --git a/tasks/main.yml b/tasks/main.yml index 62f2937..f885153 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -56,7 +56,7 @@ - name: Enable MongoDB service systemd: name: mongod - enabled: true daemon_reload: true + enabled: true become: true become_user: root