summaryrefslogtreecommitdiff
path: root/roles/apt-repo/blackmagic/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-09-28 02:01:18 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-09-28 02:01:21 +0200
commit25ea43a53ca663d8a906df9cbacf6222dbf1130f (patch)
tree98e2e4fc8508b1f90d8225fecf024456859e5012 /roles/apt-repo/blackmagic/tasks
parentadded minimal playbook for pan and mimas (diff)
some more cleanup of apt-repos
Diffstat (limited to 'roles/apt-repo/blackmagic/tasks')
-rw-r--r--roles/apt-repo/blackmagic/tasks/main.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/roles/apt-repo/blackmagic/tasks/main.yml b/roles/apt-repo/blackmagic/tasks/main.yml
new file mode 100644
index 00000000..32d31282
--- /dev/null
+++ b/roles/apt-repo/blackmagic/tasks/main.yml
@@ -0,0 +1,31 @@
+---
+- name: install apt https transport
+ apt:
+ name: apt-transport-https
+ state: present
+
+- name: install repo key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/trusted.gpg.d/blackmagic.gpg
+ notify: update apt cache
+
+- name: configure repo authentication
+ copy:
+ content: |
+ machine build.spreadspace.org
+ login {{ apt_repo_blackmagic_auth.username }}
+ password {{ apt_repo_blackmagic_auth.password }}
+ dest: /etc/apt/auth.conf.d/blackmagic.conf
+ mode: 0600
+ notify: update apt cache
+
+- name: add repository entry
+ copy:
+ content: |
+ deb https://build.spreadspace.org/ {{ ansible_distribution_release }} blackmagic
+ dest: /etc/apt/sources.list.d/blackmagic.list
+ notify: update apt cache
+
+- name: update apt cache
+ meta: flush_handlers