Skip to content

Commit 5c04b2c

Browse files
author
Sergei Antipov
committed
Deleted unused tasks and files
1 parent d8d8478 commit 5c04b2c

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

tasks/configure.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
mode: 0600
1010
when: mongodb_conf_replSet != ''
1111

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-
2112
- name: Configure log rotation
2213
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
2314
when: mongodb_logrotate
@@ -31,6 +22,10 @@
3122
- name: Configure logs
3223
file: state=file path={{ mongodb_conf_logpath }} owner={{mongodb_user}} group={{mongodb_user}} mode=0644
3324

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

templates/repset_init.js.j2

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)