Files
ansible/roles/mastodon/tasks/main.yml
2024-07-05 11:53:29 +02:00

72 lines
1.2 KiB
YAML

---
- 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