APT cache is not updated at the end of the role #5

Closed
opened 2023-11-29 10:40:35 +00:00 by lanson · 1 comment
Owner

APT cache is currently only updated if changes have been made via a handler. However, handlers aren't flushed until the end of the playbook by default, which means the update wont happen if you, for example, add the docker repo, then try to install docker, as the handlers will be flushed after the docker_install task.

To make it work, role should flush handler at the end of its run, probbly in main.yml

APT cache is currently only updated if changes have been made via a handler. However, handlers aren't flushed until the end of the playbook by default, which means the update wont happen if you, for example, add the docker repo, then try to install docker, as the handlers will be flushed after the docker_install task. To make it work, role should flush handler at the end of its run, probbly in main.yml
Author
Owner

This is now fixed

This is now fixed
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ansible-roles/manage_repositories#5
No description provided.