Clean up some things

This commit is contained in:
waffles
2023-01-19 23:35:47 -08:00
parent 795fcd83d1
commit 893e3fb82c
5 changed files with 44 additions and 10 deletions
+10 -10
View File
@@ -3,28 +3,28 @@ install:
git submodule update --init --recursive git submodule update --init --recursive
upgrade: upgrade:
ansible-playbook upgrade.yml ansible-playbook upgrade-playbook.yml
mastodon-first-install: mastodon-first-install:
ansible-playbook mastodon.yml --tags install,configure --extra-vars "first_install=True" ansible-playbook mastodon-playbook.yml --tags install,configure --extra-vars "first_install=True"
mastodon: mastodon:
ansible-playbook mastodon.yml --tags install,configure ansible-playbook mastodon-playbook.yml --tags install,configure
mastodon-config: mastodon-config:
# Used for updating the .env.production settings # Used for updating the .env.production settings
ansible-playbook mastodon.yml --tags configure ansible-playbook mastodon-playbook.yml --tags configure
frontend: frontend:
ansible-playbook mastodon.yml --tags install,configure --limit 'frontend' --extra-vars "install_frontend=True" ansible-playbook mastodon-playbook.yml --tags install,configure --limit 'frontend' --extra-vars "install_frontend=True"
frontend-config: frontend-config:
ansible-playbook mastodon.yml --tags configure --limit 'frontend' --extra-vars "install_frontend=True" ansible-playbook mastodon-playbook.yml --tags configure --limit 'frontend' --extra-vars "install_frontend=True"
webapp: webapp:
ansible-playbook mastodon.yml --tags install,configure --limit 'webapp' --extra-vars "install_webapp=True" ansible-playbook mastodon-playbook.yml --tags install,configure --limit 'webapp' --extra-vars "install_webapp=True"
webapp-config: webapp-config:
ansible-playbook mastodon.yml --tags configure --limit 'webapp' --extra-vars "install_webapp=True" ansible-playbook mastodon-playbook.yml --tags configure --limit 'webapp' --extra-vars "install_webapp=True"
sidekiq: sidekiq:
ansible-playbook mastodon.yml --tags install,configure --limit 'sidekiq' --extra-vars "install_sidekiq=True" ansible-playbook mastodon-playbook.yml --tags install,configure --limit 'sidekiq' --extra-vars "install_sidekiq=True"
sidekiq-config: sidekiq-config:
ansible-playbook mastodon.yml --tags configure --limit 'sidekiq' --extra-vars "install_sidekiq=True" ansible-playbook mastodon-playbook.yml --tags configure --limit 'sidekiq' --extra-vars "install_sidekiq=True"
+30
View File
@@ -0,0 +1,30 @@
---
- name: Configure yttrx mastodon server
hosts: [mastodon]
vars:
first_install: False
install_sidekiq: False
install_webapp: False
install_frontend: False
roles:
- when: first_install | bool
role: yttrx
tags:
- firstinstall
- role: mastodon
- when: install_sidekiq| bool
role: sidekiq
- when: install_webapp | bool
role: webapp
- when: install_frontend | bool
role: frontend
handlers:
- name: Re-up docker containers
command: /usr/local/bin/docker-compose.sh
args:
chdir: /home/mastodon/live
listen: "docker-compose up"
@@ -1,5 +1,7 @@
sidekiq-default: sidekiq-default:
logging:
driver: journald
image: tootsuite/mastodon:{{ MASTODON_VERSION }} image: tootsuite/mastodon:{{ MASTODON_VERSION }}
restart: always restart: always
env_file: .env.production env_file: .env.production
@@ -1,4 +1,6 @@
sidekiq: sidekiq:
logging:
driver: journald
image: tootsuite/mastodon:{{ MASTODON_VERSION }} image: tootsuite/mastodon:{{ MASTODON_VERSION }}
restart: always restart: always
env_file: .env.production env_file: .env.production