summaryrefslogtreecommitdiff
path: root/roles/apt-repo/qmk/tasks/main.yml
blob: 90bb9c9ff000e1bc8bb4b70d8e2b72f5a5b25427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: add repository key
  copy:
    src: repo.gpg
    dest: /etc/apt/keyrings/qmk.gpg
  register: apt_repo_qmk_key

- name: add repository entry
  copy:
    content: |
      deb [signed-by=/etc/apt/keyrings/qmk.gpg] https://linux.qmk.fm/ {{ ansible_distribution_release }} main
    dest: /etc/apt/sources.list.d/qmk.list
  register: apt_repo_qmk_sources

- name: update apt cache
  when: apt_repo_qmk_key is changed or
        apt_repo_qmk_sources is changed
  command: apt-get update