mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
rm /var/lib/mongodb/journal/prealloc.*
This commit is contained in:
parent
f9eef63af5
commit
8093798210
1 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,11 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
|
# See https://github.com/iiab/iiab/issues/254 for other attempts to eliminate these 256MB files
|
||||||
|
- name: remove journal prealloc files
|
||||||
|
shell: rm /var/lib/mongodb/journal/prealloc.*
|
||||||
|
when: not mongodb_enabled
|
||||||
|
|
||||||
- name: create the data directory for mongodb
|
- name: create the data directory for mongodb
|
||||||
file: state=directory
|
file: state=directory
|
||||||
path={{ item.path }}
|
path={{ item.path }}
|
||||||
|
@ -17,7 +22,6 @@
|
||||||
- { path: '/library/dbdata/mongodb' }
|
- { path: '/library/dbdata/mongodb' }
|
||||||
- { path: '/var/log/mongodb' }
|
- { path: '/var/log/mongodb' }
|
||||||
|
|
||||||
|
|
||||||
- name: Create systemd files
|
- name: Create systemd files
|
||||||
template: src={{ item.src }}
|
template: src={{ item.src }}
|
||||||
dest={{ item.dest }}
|
dest={{ item.dest }}
|
||||||
|
@ -38,7 +42,6 @@
|
||||||
- { name: mongodb }
|
- { name: mongodb }
|
||||||
when: mongodb_enabled
|
when: mongodb_enabled
|
||||||
|
|
||||||
|
|
||||||
- name: disable services
|
- name: disable services
|
||||||
service: name={{ item.name }}
|
service: name={{ item.name }}
|
||||||
enabled=no
|
enabled=no
|
||||||
|
|
Loading…
Reference in a new issue