You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
422 B
YAML
16 lines
422 B
YAML
---
|
|
# These tasks will update the pacman repos if Docker is not already installed.
|
|
#
|
|
# We only want to update the chache if needed, otherwise this will break
|
|
# idempotentcy.
|
|
|
|
- name: Get a list of installed pacakges.
|
|
ansible.builtin.package_facts:
|
|
manager: auto
|
|
|
|
- name: Update pacman cache if docker is not installed.
|
|
pacman:
|
|
update_cache: true
|
|
become: true
|
|
when: "'docker' not in ansible_facts.packages"
|