Skip to content

Commit

Permalink
[ansible] Fix potential error if package not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 16, 2023
1 parent fab79d2 commit db1cc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/ovos_installer/tasks/docker/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db1cc0c

Please sign in to comment.