File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 9
9
mode : 0600
10
10
when : mongodb_conf_replSet != ''
11
11
12
- - name : Configure mongodb
13
- template : src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644
14
- notify : mongodb restart
15
- register : config_result
16
-
17
- - name : mongodb restart
18
- service : name={{ mongodb_daemon_name }} state=restarted
19
- when : config_result|changed
20
-
21
12
- name : Configure log rotation
22
13
template : src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
23
14
when : mongodb_logrotate
31
22
- name : Configure logs
32
23
file : state=file path={{ mongodb_conf_logpath }} owner={{mongodb_user}} group={{mongodb_user}} mode=0644
33
24
34
- - name : Run mongoshell commands
35
- command : mongo {{ item.key }} --eval "{{ item.value|join('\n') }}"
36
- with_dict : mongodb_shell
25
+ - name : Configure mongodb
26
+ template : src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644
27
+ register : config_result
28
+
29
+ - name : mongodb restart
30
+ service : name={{ mongodb_daemon_name }} state=restarted
31
+ when : config_result|changed
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments