aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/apt-repos/defaults/main.yml2
-rw-r--r--ansible/roles/apt-repos/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/apt-repos/defaults/main.yml b/ansible/roles/apt-repos/defaults/main.yml
index 80975f0..6c83d0c 100644
--- a/ansible/roles/apt-repos/defaults/main.yml
+++ b/ansible/roles/apt-repos/defaults/main.yml
@@ -1 +1 @@
-apt_repos:
+# This has to be a dict apt_repos:
diff --git a/ansible/roles/apt-repos/tasks/main.yml b/ansible/roles/apt-repos/tasks/main.yml
index 7a571d3..2789073 100644
--- a/ansible/roles/apt-repos/tasks/main.yml
+++ b/ansible/roles/apt-repos/tasks/main.yml
@@ -1,4 +1,4 @@
-- with_dict: "{{ apt_repos|default('[]') }}"
+- with_dict: "{{ apt_repos if apt_repos is defined else {} }}"
include_tasks: repo.yml
vars:
state: "{{ item.value.state | default('present') }}"