refactor: prepare peertube installation

This commit is contained in:
VC
2024-07-05 11:53:36 +02:00
parent 476696646f
commit aeaf00a6d0
7 changed files with 17 additions and 15 deletions

25
roles/yarn/tasks/main.yml Normal file
View File

@@ -0,0 +1,25 @@
---
- name: Get yarn gpg url
ansible.builtin.get_url:
url: "{{ yarn_key_url }}"
dest: /tmp/yarn.gpg.key
mode: 0644
force: true
- name: Dearmor gpg key
ansible.builtin.command:
cmd: "gpg --dearmor --yes -o {{ yarn_key_path }} /tmp/yarn.gpg.key"
changed_when: true
- name: Set yarn source repo
ansible.builtin.copy:
content: "deb [signed-by={{ yarn_key_path }}] https://dl.yarnpkg.com/debian stable main"
dest: /etc/apt/sources.list.d/yarn.list
mode: 0644
- name: Install yarn
ansible.builtin.apt:
name: yarn
state: present
update_cache: true

4
roles/yarn/vars/main.yml Normal file
View File

@@ -0,0 +1,4 @@
---
yarn_key_url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
yarn_key_path: "/usr/share/keyrings/yarnkey.gpg"