diff --git a/ansible/roles/ovos_installer/tasks/docker/main.yml b/ansible/roles/ovos_installer/tasks/docker/main.yml index e1f22b86..1a051951 100644 --- a/ansible/roles/ovos_installer/tasks/docker/main.yml +++ b/ansible/roles/ovos_installer/tasks/docker/main.yml @@ -6,13 +6,13 @@ ansible.builtin.import_tasks: docker/setup-RedHat.yml when: - ansible_os_family == "RedHat" - - not packages["docker-ce"] | length + - "'docker-ce' not in ansible_facts.packages" - name: Include docker/setup-Debian.yml ansible.builtin.import_tasks: docker/setup-Debian.yml when: - ansible_os_family == "Debian" - - not packages["docker-ce"] | length + - "'docker-ce' not in ansible_facts.packages" - name: Include docker/common.yml ansible.builtin.import_tasks: docker/common.yml