--- - name: Check if mailcow.conf exists ansible.builtin.stat: path: "{{ mailcow_dir_result.files[0].path | default('/opt/mailcow-dockerized') }}/mailcow.conf" register: mailcow_conf when: mailcow_dir_result.files[0].path is defined