ansible-role-mastodon/tasks/docker/docker.yml

17 lines
438 B
YAML

---
- name: Clone Mastodon repo
git:
repo: https://github.com/mastodon/mastodon.git
dest: /usr/src/mastodon
depth: 1
- name: Ensure mastodon configuration is present
template:
src: templates/env.j2
dest: /usr/src/mastodon/.env.production
- name: Ensure Mastodon container is composed
community.docker.docker_compose:
project_name: mastodon
project_src: /usr/src/mastodon
state: present