geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.81k stars 854 forks source link

ensure apt cache are updated #363

Closed ghost closed 2 years ago

ghost commented 2 years ago

to prevent an error at the newly created instance

geerlingguy commented 2 years ago

Since this would have to be added to every role if done this way, I recommend managing apt caches at the playbook level, so maybe add that task into your playbook's pre_tasks.