Skip to content

Commit

Permalink
Change task to update apt package cache to a handler
Browse files Browse the repository at this point in the history
This task should only run if the ansible.builtin.deb822_repository
task actually changes anything.
  • Loading branch information
jsf9k committed Dec 27, 2024
1 parent d2a8254 commit cdd927e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Update the apt package cache
ansible.builtin.apt:
update_cache: true
5 changes: 2 additions & 3 deletions tasks/setup_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,5 @@
- "{{ apt_distro_release }}"
uris:
- https://download.docker.com/linux/{{ apt_distro }}
- name: Update the package cache
ansible.builtin.apt:
update_cache: true
notify:
- Update the apt package cache

0 comments on commit cdd927e

Please sign in to comment.