Skip to content

Commit

Permalink
Limit hold side effect play to mongos hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Jan 13, 2024
1 parent b1516ad commit f301254
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions molecule/hold/side_effect.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
- name: Update OS
hosts: all
hosts: mongos
become: true
roles:
- robertdebock.update
serial: 1
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
Expand Down

0 comments on commit f301254

Please sign in to comment.