summaryrefslogtreecommitdiff
path: root/roles/apt-repo/kicad6/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apt-repo/kicad6/tasks/main.yml')
-rw-r--r--roles/apt-repo/kicad6/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt-repo/kicad6/tasks/main.yml b/roles/apt-repo/kicad6/tasks/main.yml
new file mode 100644
index 00000000..cd58d9c9
--- /dev/null
+++ b/roles/apt-repo/kicad6/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/keyrings/kicad6.gpg
+ register: apt_repo_kicad6_key
+
+- name: add repository entry
+ copy:
+ content: |
+ deb [signed-by=/etc/apt/keyrings/kicad6.gpg] https://ppa.launchpadcontent.net/kicad/kicad-6.0-releases/ubuntu {{ ansible_distribution_release }} main
+ dest: /etc/apt/sources.list.d/kicad6.list
+ register: apt_repo_kicad6_sources
+
+- name: update apt cache
+ when: apt_repo_kicad6_key is changed or
+ apt_repo_kicad6_sources is changed
+ command: apt-get update
+ args:
+ warn: false