summaryrefslogtreecommitdiff
path: root/roles/apt-repo/helsinki/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-12-23 16:15:16 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-12-27 19:41:57 +0100
commitd4abbc7f89d22a178a4681366238ecc4c55e2daa (patch)
treea88d39d06eb0474fc36e6f26ca5828f2072b2d68 /roles/apt-repo/helsinki/tasks
parentws/base some more bits and pieces (diff)
add apt-repo/helsinki
Diffstat (limited to 'roles/apt-repo/helsinki/tasks')
-rw-r--r--roles/apt-repo/helsinki/tasks/main.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/apt-repo/helsinki/tasks/main.yml b/roles/apt-repo/helsinki/tasks/main.yml
new file mode 100644
index 00000000..f202be1a
--- /dev/null
+++ b/roles/apt-repo/helsinki/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/trusted.gpg.d/helsinki.gpg
+ register: apt_repo_helsinki_key
+
+- name: add repository entry
+ copy:
+ content: |
+ deb http://build.helsinki.at/ {{ ansible_distribution_release }} main
+ dest: /etc/apt/sources.list.d/helsinki.list
+ register: apt_repo_helsinki_sources
+
+- name: update apt cache
+ when: apt_repo_helsinki_key is changed or
+ apt_repo_helsinki_sources is changed
+ apt:
+ update_cache: yes