masto-aio/ansible/roles/mastodon/tasks/main.yaml

29 lines
471 B
YAML
Raw Normal View History

2023-11-12 16:50:05 -08:00
---
- name: install base apps
apt:
force_apt_get: yes
name:
- docker-compose-v2
- git
- name: Mastodon path
file:
path: "/srv/mastodon"
state: directory
recurse: true
- name: mastodon source
git:
repo: "https://tea.entar.net/teh/mastodon.git"
dest: /srv/mastodon/src
- name: mastodon docker-compose
template:
src: templates/docker-compose.mastodon.yaml
dest: /srv/mastodon/docker-compose.yaml
# add env file