Refactor the playbook to support multiple roles per host nicely

This commit is contained in:
Waffles
2023-01-09 02:39:02 -08:00
parent 4f73bfcf2c
commit 4d0b70bbe1
20 changed files with 186 additions and 45 deletions
+27
View File
@@ -1,3 +1,30 @@
install:
ansible-galaxy install geerlingguy.docker geerlingguy.nginx
git submodule update --init --recursive
upgrade:
ansible-playbook upgrade.yml
mastodon-first-install:
ansible-playbook mastodon.yml --tags install,configure --extra-vars "first_install=True"
mastodon:
ansible-playbook mastodon.yml --tags install,configure
mastodon-config:
# Used for updating the .env.production settings
ansible-playbook mastodon.yml --tags configure
frontend:
ansible-playbook mastodon.yml --tags install,configure --limit 'frontend' --extra-vars "install_frontend=True"
frontend-config:
ansible-playbook mastodon.yml --tags configure --limit 'frontend' --extra-vars "install_frontend=True"
webapp:
ansible-playbook mastodon.yml --tags install,configure --limit 'webapp' --extra-vars "install_webapp=True"
webapp-config:
ansible-playbook mastodon.yml --tags configure --limit 'webapp' --extra-vars "install_webapp=True"
sidekiq:
ansible-playbook mastodon.yml --tags install,configure --limit 'sidekiq' --extra-vars "install_sidekiq=True"
sidekiq-conifig:
ansible-playbook mastodon.yml --tags configure --limit 'sidekiq' --extra-vars "install_sidekiq=True"