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

@@ -1,14 +1,5 @@
---
- name: Install nodejs
ansible.builtin.include_tasks: nodejs.yml
- name: Install yarn
ansible.builtin.include_tasks: yarn.yml
- name: Install redis
ansible.builtin.include_tasks: redis.yml
- name: Create mastodon user
ansible.builtin.user:
name: mastodon

View File

@@ -1,25 +0,0 @@
---
- name: Get node source gpg url
ansible.builtin.get_url:
url: "{{ mastodon_nodejs_key_url }}"
dest: /tmp/nodesource.gpg.key
force: true
mode: 0644
- name: Dearmor gpg key
ansible.builtin.command:
cmd: "gpg --dearmor --yes -o {{ mastodon_nodejs_key_path }} /tmp/nodesource.gpg.key"
changed_when: true
- name: Set node source repo
ansible.builtin.copy:
content: "deb [signed-by={{ mastodon_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

View File

@@ -1,12 +0,0 @@
---
- name: Install redis
ansible.builtin.apt:
name: redis
state: present
update_cache: true
- name: Start redis service
ansible.builtin.service:
name: redis
state: started

View File

@@ -1,25 +0,0 @@
---
- name: Get yarn gpg url
ansible.builtin.get_url:
url: "{{ mastodon_yarn_key_url }}"
dest: /tmp/yarn.gpg.key
mode: 0644
force: true
- name: Dearmor gpg key
ansible.builtin.command:
cmd: "gpg --dearmor --yes -o {{ mastodon_yarn_key_path }} /tmp/yarn.gpg.key"
changed_when: true
- name: Set yarn source repo
ansible.builtin.copy:
content: "deb [signed-by={{ mastodon_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