From d8766553b6855bea1d2ed94445fdff17cd93befb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 2 Apr 2022 00:57:59 +0200 Subject: ch-equinox-(ws|t450s): kicad and freecad from PPA --- roles/apt-repo/freecad/files/repo.gpg | Bin 0 -> 412 bytes roles/apt-repo/freecad/tasks/main.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 roles/apt-repo/freecad/files/repo.gpg create mode 100644 roles/apt-repo/freecad/tasks/main.yml (limited to 'roles/apt-repo/freecad') 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 Binary files /dev/null and b/roles/apt-repo/freecad/files/repo.gpg 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 -- cgit v1.2.3