mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-10 12:06:23 +00:00
Merge pull request #58 from danielwhite/configure-dbpath-owner
Ensure dbpath directory has configurable owner
This commit is contained in:
commit
48fcd565fe
@ -32,6 +32,13 @@
|
||||
file: state=touch dest={{ mongodb_systemlog_path }} owner={{ mongodb_user }} group={{mongodb_user}} mode=0755
|
||||
when: logfile_stat is defined and not logfile_stat.stat.exists
|
||||
|
||||
- name: Ensure dbpath directory
|
||||
file:
|
||||
path: "{{ mongodb_storage_dbpath }}"
|
||||
state: directory
|
||||
owner: "{{ mongodb_user }}"
|
||||
recurse: yes
|
||||
|
||||
- name: Configure mongodb
|
||||
template: src=mongod.conf.j2 dest=/etc/mongod.conf backup=yes owner=root group=root mode=0644
|
||||
register: config_result
|
||||
|
@ -44,9 +44,6 @@
|
||||
- "{{mongodb_package}}"
|
||||
- numactl
|
||||
|
||||
- name: Ensure dbpath directory
|
||||
file: path={{mongodb_storage_dbpath}} state=directory owner=mongodb recurse=yes
|
||||
|
||||
- name: reload systemd
|
||||
shell: systemctl daemon-reload
|
||||
changed_when: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user