--- # - name: Clone Mastodon repo # git: # repo: https://github.com/mastodon/mastodon.git # dest: "{{ mastodon_composer_folder }}" # depth: 1 - name: Ensure mastodon folder exists file: path: "{{ mastodon_composer_folder }}" state: directory - name: Create docker-compose.yaml file copy: src: files/docker-compose.yml dest: "{{ mastodon_composer_folder }}/docker-compose.yml" - name: Ensure mastodon configuration is present template: src: templates/env.j2 dest: "{{ mastodon_composer_folder }}/.env.production" - name: Ensure Mastodon container is composed community.docker.docker_compose: project_name: mastodon project_src: "{{ mastodon_composer_folder }}/" state: present