summaryrefslogtreecommitdiff
path: root/roles/apt-repo/blackmagic/tasks/main.yml
blob: 32d3128237df7caad747c6596f98a7e07a16007a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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