feat: add mastodon support directly

This commit is contained in:
VC
2024-07-05 11:53:29 +02:00
parent a8868f7f07
commit e77ff577c1
17 changed files with 427 additions and 12 deletions

View File

@@ -0,0 +1,71 @@
---
- name: install nodejs
include_tasks: nodejs.yml
- name: install yarn
include_tasks: yarn.yml
- name: install redis
include_tasks: redis.yml
- name: mastodon user
user:
name: mastodon
comment: "John Mastodon"
password: '!'
shell: /bin/bash
home: "{{ mastodon_home }}"
- name: mastodon .ssh dir
file:
state: directory
path: "{{ mastodon_home }}/.ssh"
owner: mastodon
group: mastodon
- name: ssh for mastodon user
copy:
remote_src: true
src: /root/.ssh/authorized_keys
dest: "{{ mastodon_home }}/.ssh/authorized_keys"
owner: mastodon
group: mastodon
- name: install prereq
apt:
name: "{{ item }}"
state: present
loop:
- imagemagick
- ffmpeg
- libpq-dev
- libxml2-dev
- libxslt1-dev
- file
- git-core
- g++
- libprotobuf-dev
- protobuf-compiler
- pkg-config
- nodejs
- gcc
- autoconf
- bison
- build-essential
- libssl-dev
- libyaml-dev
- libreadline6-dev
- zlib1g-dev
- libncurses5-dev
- libffi-dev
- libgdbm-dev
- libidn11-dev
- libicu-dev
- libjemalloc-dev
- name: install rbenv
include_tasks: rbenv.yml
- name: install mastodon
include_tasks: mastodon.yml