diff options
Diffstat (limited to 'roles/apt-repo/riot/tasks/main.yml')
-rw-r--r-- | roles/apt-repo/riot/tasks/main.yml | 9 |
1 files changed, 6 insertions, 3 deletions
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 |