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

View File

@@ -0,0 +1,25 @@
---
- name: Get node source gpg url
ansible.builtin.get_url:
url: "{{ nodejs_key_url }}"
dest: /tmp/nodesource.gpg.key
force: true
mode: 0644
- name: Dearmor gpg key
ansible.builtin.command:
cmd: "gpg --dearmor --yes -o {{ nodejs_key_path }} /tmp/nodesource.gpg.key"
changed_when: true
- name: Set node source repo
ansible.builtin.copy:
content: "deb [signed-by={{ nodejs_key_path }}] https://deb.nodesource.com/node_16.x {{ ansible_facts['distribution_release'] }} main"
dest: /etc/apt/sources.list.d/nodesource.list
mode: 0644
- name: Install nodejs
ansible.builtin.apt:
name: nodejs
state: present
update_cache: true