summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-19 14:15:55 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-19 14:15:55 +0300
commit3853f59772577ca5719898930e61f8cc0796f6ea (patch)
treefe70f966a8f9c9e4be99817fb978ef587fdacbe6 /roles
parente1e6218b85fb755ae30cffb6d196b1ae9bb049e5 (diff)
downloaddebian-ansible-3853f59772577ca5719898930e61f8cc0796f6ea.tar.gz
Add: in sources_lists signing-key and keyring-package are optional
Diffstat (limited to 'roles')
-rw-r--r--roles/sane_debian_system/tasks/apt.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/sane_debian_system/tasks/apt.yml b/roles/sane_debian_system/tasks/apt.yml
index 9cbeca6..3479334 100644
--- a/roles/sane_debian_system/tasks/apt.yml
+++ b/roles/sane_debian_system/tasks/apt.yml
@@ -30,6 +30,7 @@
apt_key:
data: "{{ item.signing_key }}"
state: present
+ when: item.signing_key is defined
- name: update package lists
apt:
@@ -40,6 +41,7 @@
with_items: "{{ sources_lists }}"
apt:
name: "{{ item.keyring_package }}"
+ when: item.keyring_package is defined
- name: dist-upgrade so everything is up to date
apt: