summaryrefslogtreecommitdiff
path: root/roles/apt-repo/aptly/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-10-08 22:44:54 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-10-08 22:44:54 +0200
commit905b31acaa286c18b8914bdd3f06fd2d00932230 (patch)
tree39a4223ce08e16883a936699bdc49d1952d732ed /roles/apt-repo/aptly/tasks
parentremove ch-oulu (testhost) (diff)
no more flush-handlers for apt-repos
Diffstat (limited to 'roles/apt-repo/aptly/tasks')
-rw-r--r--roles/apt-repo/aptly/tasks/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/apt-repo/aptly/tasks/main.yml b/roles/apt-repo/aptly/tasks/main.yml
index e11d610e..7a482549 100644
--- a/roles/apt-repo/aptly/tasks/main.yml
+++ b/roles/apt-repo/aptly/tasks/main.yml
@@ -3,14 +3,17 @@
copy:
src: repo.gpg
dest: /etc/apt/trusted.gpg.d/aptly.gpg
- notify: update apt cache
+ register: apt_repo_aptly_key
- name: add repository entry
copy:
content: |
deb http://repo.aptly.info/ squeeze main
dest: /etc/apt/sources.list.d/aptly.list
- notify: update apt cache
+ register: apt_repo_aptly_sources
- name: update apt cache
- meta: flush_handlers
+ when: apt_repo_aptly_key is changed or
+ apt_repo_aptly_sources is changed
+ apt:
+ update_cache: yes