summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chaos-at-home/ch-equinox-t450s.yml2
-rw-r--r--chaos-at-home/ch-equinox-ws.yml2
-rw-r--r--roles/apt-repo/freecad/files/repo.gpgbin0 -> 412 bytes
-rw-r--r--roles/apt-repo/freecad/tasks/main.yml20
-rw-r--r--roles/apt-repo/kicad6/files/repo.gpgbin0 -> 1160 bytes
-rw-r--r--roles/apt-repo/kicad6/tasks/main.yml20
6 files changed, 44 insertions, 0 deletions
diff --git a/chaos-at-home/ch-equinox-t450s.yml b/chaos-at-home/ch-equinox-t450s.yml
index c845e0ac..9022f337 100644
--- a/chaos-at-home/ch-equinox-t450s.yml
+++ b/chaos-at-home/ch-equinox-t450s.yml
@@ -16,6 +16,8 @@
- role: apt-repo/riot
- role: apt-repo/brave
- role: apt-repo/nordvpn
+ - role: apt-repo/freecad
+ - role: apt-repo/kicad6
- role: storage/zfs/pools
- role: storage/zfs/sanoid
- role: ws/base
diff --git a/chaos-at-home/ch-equinox-ws.yml b/chaos-at-home/ch-equinox-ws.yml
index 0b1ca3c1..e70091cf 100644
--- a/chaos-at-home/ch-equinox-ws.yml
+++ b/chaos-at-home/ch-equinox-ws.yml
@@ -16,6 +16,8 @@
- role: apt-repo/kubernetes
- role: apt-repo/riot
- role: apt-repo/brave
+ - role: apt-repo/freecad
+ - role: apt-repo/kicad6
- role: ws/base
- role: core/admin-users
post_tasks:
diff --git a/roles/apt-repo/freecad/files/repo.gpg b/roles/apt-repo/freecad/files/repo.gpg
new file mode 100644
index 00000000..79cc23e8
--- /dev/null
+++ b/roles/apt-repo/freecad/files/repo.gpg
Binary files differ
diff --git a/roles/apt-repo/freecad/tasks/main.yml b/roles/apt-repo/freecad/tasks/main.yml
new file mode 100644
index 00000000..a216ece6
--- /dev/null
+++ b/roles/apt-repo/freecad/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/keyrings/freecad.gpg
+ register: apt_repo_freecad_key
+
+- name: add repository entry
+ copy:
+ content: |
+ deb [signed-by=/etc/apt/keyrings/freecad.gpg] https://ppa.launchpadcontent.net/freecad-maintainers/freecad-stable/ubuntu {{ ansible_distribution_release }} main
+ dest: /etc/apt/sources.list.d/freecad.list
+ register: apt_repo_freecad_sources
+
+- name: update apt cache
+ when: apt_repo_freecad_key is changed or
+ apt_repo_freecad_sources is changed
+ command: apt-get update
+ args:
+ warn: false
diff --git a/roles/apt-repo/kicad6/files/repo.gpg b/roles/apt-repo/kicad6/files/repo.gpg
new file mode 100644
index 00000000..274698cd
--- /dev/null
+++ b/roles/apt-repo/kicad6/files/repo.gpg
Binary files differ
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