infrastructure/roles/mastodon/handlers/main.yml
saibotk 70341479b1
!chore: Migrate to docker_compose_v2
This now uses the new docker compose plugin.
Because we used docker-compose v1.24.1 to this point due to centos needing to install C toolchains to build never versions, the newest Docker v25 breaks compatibility and we need to use something newer.
2024-02-22 00:37:48 +01:00

14 lines
364 B
YAML

---
# Handlers file for the mastodon role
- name: Pull mastodon image
community.docker.docker_image:
name: "docker.io/tootsuite/mastodon:{{ mastodon_image_version }}"
source: pull
become: true
- name: Stop mastodon for upgrade
community.docker.docker_compose_v2:
state: stopped
project_src: "{{ mastodon_install_location }}"
become: true