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