diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-12 10:48:40 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-12 10:48:40 +0200 |
commit | 8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c (patch) | |
tree | bf7b437a1011a6df917167f01f59c60d46ef4af0 /ansible/roles/apt-repos | |
parent | d3197b81c89dab8f0eb412037aec42f38f0cc189 (diff) | |
download | infra-8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c.tar.gz infra-8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c.tar.bz2 infra-8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c.tar.xz infra-8ecccc67daf90045f9e0da9ac73e9eef8ce3b84c.zip |
apt-repos: Supporting custom filenames.
Useful if the package also delivers a sources.list file.
Diffstat (limited to 'ansible/roles/apt-repos')
-rw-r--r-- | ansible/roles/apt-repos/tasks/repo.yml | 3 |
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: | |