Skip to content

Commit 852ad21

Browse files
committed
Fix all issues and warnings
1 parent 1d05934 commit 852ad21

File tree

11 files changed

+66
-512
lines changed

11 files changed

+66
-512
lines changed

handlers/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,22 @@
1919

2020
- name: restart sysfsutils
2121
service: name=sysfsutils state=restarted
22+
23+
- name: service started
24+
service:
25+
name: "{{ mongodb_daemon_name }}"
26+
state: started
27+
28+
- name: wait when mongodb is started
29+
wait_for:
30+
host: "{{ item }}"
31+
port: "{{ mongodb_net_port }}"
32+
timeout: 120
33+
with_items: "{{ mongodb_net_bindip.split(',') | map('replace', '0.0.0.0', '127.0.0.1') | list }}"
34+
35+
- name: wait when mongodb is started on localhost
36+
wait_for:
37+
host: "127.0.0.1"
38+
port: "{{ mongodb_net_port }}"
39+
delay: 5
40+
timeout: 120

0 commit comments

Comments
 (0)