add else section to inline if

This commit is contained in:
Robert Kaussow 2018-07-07 16:50:56 +02:00
parent e373d9f052
commit c1b7b5a70b

View File

@ -36,7 +36,7 @@
state: directory state: directory
with_items: with_items:
- "{{ mongodb_storage_dbpath }}" - "{{ mongodb_storage_dbpath }}"
- "{{ mongodb_systemlog_path | dirname if mongodb_systemlog_destination == 'file'}}" - "{{ mongodb_systemlog_path | dirname if mongodb_systemlog_destination == 'file' else omit}}"
# - name: Make sure mongodb is running # - name: Make sure mongodb is running
# systemd: # systemd: