diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..f34c329 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,4 @@ +--- +- name: Update the apt package cache + ansible.builtin.apt: + update_cache: true diff --git a/tasks/setup_Debian.yml b/tasks/setup_Debian.yml index f8d3aa3..ec51b4b 100644 --- a/tasks/setup_Debian.yml +++ b/tasks/setup_Debian.yml @@ -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