1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

"when: not mongodb_enabled" added back

This commit is contained in:
A Holt 2017-10-18 22:00:13 -04:00 committed by GitHub
parent 48b30cc8a7
commit 942bb4a18b

View file

@ -52,12 +52,14 @@
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 }}'