diff --git a/tasks/docker/ubuntu.yml b/tasks/docker/ubuntu.yml index 81492c8..f4e5750 100644 --- a/tasks/docker/ubuntu.yml +++ b/tasks/docker/ubuntu.yml @@ -19,6 +19,7 @@ become: true with_items: - { repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable" } + update_cache: true when: docker_command == 'docker' - name: Ensure keyring folder for apt exists @@ -39,9 +40,3 @@ when: - docker_command == 'podman' - ansible_distribution_version|int < 20.10 - -- name: Run apt update - apt: - update_cache: true - cache_valid_time: 3600 - become: true