From c16e7d6c4c12f12fffaa300e478b4b214c31455e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 3 Sep 2019 07:32:51 +0200 Subject: apt-repos: o Running handler when updating apt-key. --- ansible/roles/apt-repos/tasks/repo.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ansible/roles') diff --git a/ansible/roles/apt-repos/tasks/repo.yml b/ansible/roles/apt-repos/tasks/repo.yml index 3ed3632..9554796 100644 --- a/ansible/roles/apt-repos/tasks/repo.yml +++ b/ansible/roles/apt-repos/tasks/repo.yml @@ -4,6 +4,7 @@ url: "{{ item.value.key_url }}" state: "{{ state }}" when: item.value.key_url is defined and item.value.key_id is defined + notify: apt update - name: "apt-key add {{ item.key }} (keyserver)" apt_key: @@ -11,12 +12,12 @@ keyserver: "{{ item.value.keyserver }}" state: "{{ state }}" when: item.value.keyserver is defined and item.value.key_id is defined + notify: apt update - name: "add repo {{ item.key }}" when: item.value.url is defined and state == "present" vars: filename: "{{ item.filename | default(item.key) }}" -# filename: "{{ item.filename if item.filename is defined else item.key }}" copy: dest: "/etc/apt/sources.list.d/{{ item.key }}.list" content: | -- cgit v1.2.3