diff --git a/playbooks/infra-journal-remote.yml b/playbooks/infra-journal-remote.yml index 19bbb352f0..50ad0aba6a 100644 --- a/playbooks/infra-journal-remote.yml +++ b/playbooks/infra-journal-remote.yml @@ -26,6 +26,11 @@ when: - ansible_pkg_mgr == 'zypper' + - name: Skip playbook if log_hosts group is empty + meta: end_play + when: + - groups['log_hosts'] | length == 0 + - name: Install systemd-journal-remote package: name: "{{ systemd_journal_remote_distro_package[ansible_pkg_mgr] }}"