aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/apt-repos/tasks/repo.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/ansible/roles/apt-repos/tasks/repo.yml b/ansible/roles/apt-repos/tasks/repo.yml
index 135aeac..3ed3632 100644
--- a/ansible/roles/apt-repos/tasks/repo.yml
+++ b/ansible/roles/apt-repos/tasks/repo.yml
@@ -14,6 +14,9 @@
- 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: |