Initial commit

This commit is contained in:
Waffles
2022-12-21 22:30:01 -08:00
commit 19ebda26b4
47 changed files with 1429 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
---
# Setup users etc
- name: create the mastodon user account
user:
name: mastodon
shell: /bin/bash
group: docker
- name: Check if mastodon repo checked out
stat: path=/home/mastodon/live
register: p
- import_tasks: swap.yml
- import_tasks: repo.yml
when: not p.stat.exists
- name: Install statsd mapper
template:
src: statsd-mapping.yaml.j2
dest: /root/statsd-mapping.yml
- name: Install .env.production file
template:
src: env.production.j2
dest: /home/mastodon/live/.env.production
- name: Install docker-compose.yml file
template:
src: docker-compose.yml.j2
dest: /home/mastodon/live/docker-compose.yml
notify: "docker-compose up"