diff options
Diffstat (limited to 'roles/apt-repo/qmk/tasks/main.yml')
-rw-r--r-- | roles/apt-repo/qmk/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
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 |