feat: add mastodon support directly
This commit is contained in:
71
roles/mastodon/tasks/main.yml
Normal file
71
roles/mastodon/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user