From f3012544ab51751ee6f9674ec51e7ed457e85fc7 Mon Sep 17 00:00:00 2001 From: Ted Cook Date: Sat, 13 Jan 2024 11:21:48 -0600 Subject: [PATCH] Limit hold side effect play to mongos hosts --- molecule/hold/side_effect.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/molecule/hold/side_effect.yml b/molecule/hold/side_effect.yml index e053e82..6d63e34 100644 --- a/molecule/hold/side_effect.yml +++ b/molecule/hold/side_effect.yml @@ -1,6 +1,6 @@ --- - name: Update OS - hosts: all + hosts: mongos become: true roles: - robertdebock.update @@ -8,7 +8,8 @@ tasks: - name: Wait for MongoDB to be up community.mongodb.mongodb_shell: - eval: "db.runCommand({ping: 1})" + db: "admin" + eval: sh.status() mongo_cmd: "{{ mongodb_shell | default(omit) }}" register: mongodb_status retries: 6