summaryrefslogtreecommitdiff
path: root/roles/apt-repo/freecad
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-04-02 00:57:59 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-04-02 00:57:59 +0200
commitd8766553b6855bea1d2ed94445fdff17cd93befb (patch)
treeb4a28c6316446137d61b4af2bdcc59a5afc89dbd /roles/apt-repo/freecad
parentprometheus: revamp alerts for smartmon metrics (diff)
ch-equinox-(ws|t450s): kicad and freecad from PPA
Diffstat (limited to 'roles/apt-repo/freecad')
-rw-r--r--roles/apt-repo/freecad/files/repo.gpgbin0 -> 412 bytes
-rw-r--r--roles/apt-repo/freecad/tasks/main.yml20
2 files changed, 20 insertions, 0 deletions
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