From 905b31acaa286c18b8914bdd3f06fd2d00932230 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 8 Oct 2020 22:44:54 +0200 Subject: no more flush-handlers for apt-repos --- roles/apt-repo/riot/handlers/main.yml | 4 ---- roles/apt-repo/riot/tasks/main.yml | 9 ++++++--- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 roles/apt-repo/riot/handlers/main.yml (limited to 'roles/apt-repo/riot') diff --git a/roles/apt-repo/riot/handlers/main.yml b/roles/apt-repo/riot/handlers/main.yml deleted file mode 100644 index 03ed878a..00000000 --- a/roles/apt-repo/riot/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- name: update apt cache - apt: - update_cache: yes diff --git a/roles/apt-repo/riot/tasks/main.yml b/roles/apt-repo/riot/tasks/main.yml index 060cc8e3..8bc075dd 100644 --- a/roles/apt-repo/riot/tasks/main.yml +++ b/roles/apt-repo/riot/tasks/main.yml @@ -3,14 +3,17 @@ copy: src: repo.gpg dest: /etc/apt/trusted.gpg.d/riot.gpg - notify: update apt cache + register: apt_repo_riot_key - name: add repository entry copy: content: | deb https://riot.im/packages/debian/ default main dest: /etc/apt/sources.list.d/riot.list - notify: update apt cache + register: apt_repo_riot_sources - name: update apt cache - meta: flush_handlers + when: apt_repo_riot_key is changed or + apt_repo_riot_sources is changed + apt: + update_cache: yes -- cgit v1.2.3