diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-04-02 00:57:59 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-04-02 00:57:59 +0200 |
commit | d8766553b6855bea1d2ed94445fdff17cd93befb (patch) | |
tree | b4a28c6316446137d61b4af2bdcc59a5afc89dbd | |
parent | prometheus: revamp alerts for smartmon metrics (diff) |
ch-equinox-(ws|t450s): kicad and freecad from PPA
-rw-r--r-- | chaos-at-home/ch-equinox-t450s.yml | 2 | ||||
-rw-r--r-- | chaos-at-home/ch-equinox-ws.yml | 2 | ||||
-rw-r--r-- | roles/apt-repo/freecad/files/repo.gpg | bin | 0 -> 412 bytes | |||
-rw-r--r-- | roles/apt-repo/freecad/tasks/main.yml | 20 | ||||
-rw-r--r-- | roles/apt-repo/kicad6/files/repo.gpg | bin | 0 -> 1160 bytes | |||
-rw-r--r-- | roles/apt-repo/kicad6/tasks/main.yml | 20 |
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 Binary files differnew file mode 100644 index 00000000..79cc23e8 --- /dev/null +++ b/roles/apt-repo/freecad/files/repo.gpg 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 Binary files differnew file mode 100644 index 00000000..274698cd --- /dev/null +++ b/roles/apt-repo/kicad6/files/repo.gpg 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 |