From d4abbc7f89d22a178a4681366238ecc4c55e2daa Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 23 Dec 2020 16:15:16 +0100 Subject: add apt-repo/helsinki --- roles/apt-repo/helsinki/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/apt-repo/helsinki/tasks/main.yml (limited to 'roles/apt-repo/helsinki/tasks') 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 -- cgit v1.2.3