diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-03 07:32:51 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-03 07:32:51 +0200 |
commit | c16e7d6c4c12f12fffaa300e478b4b214c31455e (patch) | |
tree | 38fe39780dd7e31141576ca214a42930b784b470 /ansible | |
parent | 8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c (diff) | |
download | infra-c16e7d6c4c12f12fffaa300e478b4b214c31455e.tar.gz infra-c16e7d6c4c12f12fffaa300e478b4b214c31455e.tar.bz2 infra-c16e7d6c4c12f12fffaa300e478b4b214c31455e.tar.xz infra-c16e7d6c4c12f12fffaa300e478b4b214c31455e.zip |
apt-repos:
o Running handler when updating apt-key.
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/apt-repos/tasks/repo.yml | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |