Skip to content

Commit 705ea29

Browse files
committed
Ensure service is started
Since the service could have been stopped manually (outside Ansible) we should ensure that the service is started before waiting for the port to come up.
1 parent 084f09a commit 705ea29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/configure.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
service: name={{ mongodb_daemon_name }} state=restarted
4848
when: config_result|changed and mongodb_manage_service
4949

50+
- name: Ensure service is started
51+
service: name={{ mongodb_daemon_name }} state=started
52+
5053
- name: Set fact about wait_for host address
5154
set_fact:
5255
wait_for_host: 127.0.0.1

0 commit comments

Comments
 (0)