1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +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:
A Holt 2017-10-19 00:29:52 -04:00 committed by GitHub
parent 942bb4a18b
commit 9361f6dc88

View file

@ -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 }}'