refactor: prepare peertube installation
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user