2022-11-07 18:21:36 -08:00
|
|
|
---
|
|
|
|
|
|
|
|
# https://docs.joinmastodon.org/admin/config/make
|
|
|
|
|
|
|
|
- name: check out mastodon
|
|
|
|
git:
|
2022-11-07 18:41:09 -08:00
|
|
|
repo: ssh://git@git.stoopid.club:2222/teh.entar.net/mastodon.git
|
|
|
|
version: deploy
|
2022-11-07 18:21:36 -08:00
|
|
|
dest: /srv/mastodon
|
|
|
|
update: no
|
|
|
|
register: mastodon_git
|
|
|
|
|
|
|
|
- name: masto docker-compose
|
|
|
|
copy:
|
|
|
|
src: files/docker-compose.yaml
|
|
|
|
dest: /srv/mastodon/docker-compose.yml
|
|
|
|
register: mastodon_docker_compose
|
|
|
|
|
|
|
|
- name: masto env
|
|
|
|
copy:
|
|
|
|
src: files/mastodon-env
|
|
|
|
dest: /srv/mastodon/.env.production
|
|
|
|
register: mastodon_env
|
|
|
|
|
2022-11-07 19:31:28 -08:00
|
|
|
- name: launch mastodon
|
|
|
|
command: docker-compose up -d
|
|
|
|
args:
|
|
|
|
chdir: /srv/mastodon
|
|
|
|
|
|
|
|
# XXX PARAMETERIZE AND PUT BACK THE NGINX STUFF BEFORE PROD:
|
|
|
|
#- name: nginx config
|
|
|
|
# copy:
|
|
|
|
# src: files/nginx.conf
|
|
|
|
# dest: /srv/nginx/conf.d/teh.entar.net.conf
|
|
|
|
# owner: netsrv
|
|
|
|
# group: netsrv
|
|
|
|
# mode: "0644"
|
|
|
|
# register: nginx
|
|
|
|
#
|
|
|
|
#- name: restart nginx
|
|
|
|
# command: docker restart nginx-www
|
|
|
|
# when: nginx.changed
|
2022-11-07 18:21:36 -08:00
|
|
|
|