mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
remove both "when: not mongodb_enabled" so prealloc files actually get deleted
See https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/computed_vars.yml#L63-L67 pasted in here: - name: Turn on mongodb if sugarizer enabled set_fact: mongodb_install: True mongodb_enabled: True when: sugarizer_enabled The above 5 lines might be commented out as an experiment, to dump MongoDB entirely on a trial basis.
This commit is contained in:
parent
942bb4a18b
commit
9361f6dc88
1 changed files with 0 additions and 2 deletions
|
@ -52,14 +52,12 @@
|
||||||
paths: /var/lib/mongodb/journal
|
paths: /var/lib/mongodb/journal
|
||||||
patterns: prealloc.*
|
patterns: prealloc.*
|
||||||
register: files_to_delete
|
register: files_to_delete
|
||||||
when: not mongodb_enabled
|
|
||||||
|
|
||||||
- name: delete prealloc files
|
- name: delete prealloc files
|
||||||
file:
|
file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_items: "{{ files_to_delete.files }}"
|
with_items: "{{ files_to_delete.files }}"
|
||||||
when: not mongodb_enabled
|
|
||||||
|
|
||||||
- name: add mongodb to service list
|
- name: add mongodb to service list
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file: dest='{{ service_filelist }}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue