diff options
Diffstat (limited to 'roles/apt-repo/qmk')
-rw-r--r-- | roles/apt-repo/qmk/files/repo.gpg | bin | 0 -> 454 bytes | |||
-rw-r--r-- | roles/apt-repo/qmk/tasks/main.yml | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/roles/apt-repo/qmk/files/repo.gpg b/roles/apt-repo/qmk/files/repo.gpg Binary files differnew file mode 100644 index 00000000..b9c59a08 --- /dev/null +++ b/roles/apt-repo/qmk/files/repo.gpg diff --git a/roles/apt-repo/qmk/tasks/main.yml b/roles/apt-repo/qmk/tasks/main.yml new file mode 100644 index 00000000..90bb9c9f --- /dev/null +++ b/roles/apt-repo/qmk/tasks/main.yml @@ -0,0 +1,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 |