From 8a9c4f9017e3d64667ad53991af517931fb206c0 Mon Sep 17 00:00:00 2001 From: zv3no <121855417+zv3no@users.noreply.github.com> Date: Tue, 3 Jan 2023 10:52:32 +0200 Subject: [PATCH] Add-tags-mongodb_normal_user Add tags mongodb_normal_user and mongodb_oplog_user to add new users without restarting the service --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9659be9d..5ee6b5dd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -81,7 +81,7 @@ and mongodb_security_authorization == 'enabled' and mongodb_master is defined and mongodb_master ) no_log: true - tags: [mongodb] + tags: [mongodb, mongodb_normal_users] - name: create normal users without replicaset mongodb_user: @@ -100,7 +100,7 @@ when: ( mongodb_security_authorization == 'enabled' and not mongodb_replication_replset ) no_log: true - tags: [mongodb] + tags: [mongodb, mongodb_normal_users] - name: create oplog user with replicaset mongodb_user: @@ -122,7 +122,7 @@ and mongodb_security_authorization == 'enabled' and mongodb_master is defined and mongodb_master ) no_log: true - tags: [mongodb] + tags: [mongodb, mongodb_oplog_users] - name: service started service: