- name: Update latest repo hosts: all remote_user: fedora become: yes gather_facts: no tasks: - name: check journal raw: journalctl -aeb > /tmp/journal_log - name: check journal shell: test -s /tmp/journal_log register: result - name: assert the result assert: that: result.rc == 0