From 918d066bfdee300e87a4c5777de6125bf62c76b2 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 6 Sep 2019 09:36:26 +0200 Subject: apt-repos: Better structure for repositories. --- ansible/roles/apt-repos/defaults/main.yml | 2 +- ansible/roles/apt-repos/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ansible/roles') 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') }}" -- cgit v1.2.3