diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-06 09:36:26 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-06 09:36:26 +0200 |
commit | 918d066bfdee300e87a4c5777de6125bf62c76b2 (patch) | |
tree | e8019301a61a3c34068687a0e58daee13fdb71ce /ansible/roles | |
parent | 10f587498eb84cf49fe861dae42211bc04ef55d8 (diff) | |
download | infra-918d066bfdee300e87a4c5777de6125bf62c76b2.tar.gz infra-918d066bfdee300e87a4c5777de6125bf62c76b2.tar.bz2 infra-918d066bfdee300e87a4c5777de6125bf62c76b2.tar.xz infra-918d066bfdee300e87a4c5777de6125bf62c76b2.zip |
apt-repos: Better structure for repositories.
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/apt-repos/defaults/main.yml | 2 | ||||
-rw-r--r-- | ansible/roles/apt-repos/tasks/main.yml | 2 |
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') }}" |