mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +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
|
||||
patterns: prealloc.*
|
||||
register: files_to_delete
|
||||
when: not mongodb_enabled
|
||||
|
||||
- name: delete prealloc files
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
with_items: "{{ files_to_delete.files }}"
|
||||
when: not mongodb_enabled
|
||||
|
||||
- name: add mongodb to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
|
|
Loading…
Reference in a new issue