diff --git a/tasks/install.yml b/tasks/install.yml index 6de6347..1d19a40 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -36,7 +36,7 @@ state: directory with_items: - "{{ mongodb_storage_dbpath }}" - - "{{ mongodb_systemlog_path | dirname if mongodb_systemlog_destination == 'file' else omit}}" + - "{{ mongodb_systemlog_path | dirname when mongodb_systemlog_destination }}" # - name: Make sure mongodb is running # systemd: