summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-28 01:58:42 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-28 01:58:42 +0200
commitb94247d67d02b85207607fdcdc7b6db751d183ae (patch)
treea1d7dfd784b757faef8815c2fbe2bbb029011d1f
parentadd simple postfix to sk-tomnext-nc (diff)
add riot-desktop to ch-equinox-ws
-rw-r--r--chaos-at-home/ch-equinox-ws.yml1
-rw-r--r--inventory/host_vars/ch-equinox-ws.yml8
-rw-r--r--roles/apt-repo/riot/files/repo.gpgbin0 -> 2887 bytes
-rw-r--r--roles/apt-repo/riot/handlers/main.yml4
-rw-r--r--roles/apt-repo/riot/tasks/main.yml21
5 files changed, 31 insertions, 3 deletions
diff --git a/chaos-at-home/ch-equinox-ws.yml b/chaos-at-home/ch-equinox-ws.yml
index 3032d762..5a52bbb7 100644
--- a/chaos-at-home/ch-equinox-ws.yml
+++ b/chaos-at-home/ch-equinox-ws.yml
@@ -11,4 +11,5 @@
- role: apt-repo/spreadspace
- role: apt-repo/tor-project
- role: apt-repo/kubernetes
+ - role: apt-repo/riot
- role: ubuntu-ws
diff --git a/inventory/host_vars/ch-equinox-ws.yml b/inventory/host_vars/ch-equinox-ws.yml
index cf889b60..868eebde 100644
--- a/inventory/host_vars/ch-equinox-ws.yml
+++ b/inventory/host_vars/ch-equinox-ws.yml
@@ -162,14 +162,16 @@ ubuntu_ws_extra_packages:
- xul-ext-lightning
- yamllint
- yasm
- # needs apt-rep/spreadspace
+ # needs apt-repo/spreadspace
- go
- info-beamer
- # needs apt-rep/tor-project
+ # needs apt-repo/tor-project
- tor
- tor-geoipdb
- # needs apt-rep/kubernetes
+ # needs apt-repo/kubernetes
- kubectl
+ # needs apt-repo/riot
+ - riot-desktop
## needs PPA or other external repo ??
# - ansible
diff --git a/roles/apt-repo/riot/files/repo.gpg b/roles/apt-repo/riot/files/repo.gpg
new file mode 100644
index 00000000..888764a5
--- /dev/null
+++ b/roles/apt-repo/riot/files/repo.gpg
Binary files differ
diff --git a/roles/apt-repo/riot/handlers/main.yml b/roles/apt-repo/riot/handlers/main.yml
new file mode 100644
index 00000000..03ed878a
--- /dev/null
+++ b/roles/apt-repo/riot/handlers/main.yml
@@ -0,0 +1,4 @@
+---
+- name: update apt cache
+ apt:
+ update_cache: yes
diff --git a/roles/apt-repo/riot/tasks/main.yml b/roles/apt-repo/riot/tasks/main.yml
new file mode 100644
index 00000000..46e977e0
--- /dev/null
+++ b/roles/apt-repo/riot/tasks/main.yml
@@ -0,0 +1,21 @@
+---
+- name: install apt https transport
+ apt:
+ name: apt-transport-https
+ state: present
+
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/trusted.gpg.d/riot.gpg
+ notify: update apt cache
+
+- name: add repository entry
+ copy:
+ content: |
+ deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main
+ dest: /etc/apt/sources.list.d/riot.list
+ notify: update apt cache
+
+- name: update apt cache
+ meta: flush_handlers