We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45da87d commit 390f926Copy full SHA for 390f926
tasks/configure.yml
@@ -66,3 +66,14 @@
66
- name: mongodb restart
67
service: name={{ mongodb_daemon_name }} state=restarted
68
when: config_result|changed and mongodb_manage_service
69
+
70
+- name: Set fact about wait_for host address
71
+ set_fact:
72
+ wait_for_host: 127.0.0.1
73
+ when: mongodb_conf_bind_ip == "0.0.0.0"
74
75
+- name: Wait when mongodb is started
76
+ wait_for:
77
+ host: "{{ wait_for_host | default(mongodb_conf_bind_ip) }}"
78
+ port: "{{ mongodb_conf_port }}"
79
+ timeout: 120
0 commit comments