Refactor the playbook to support multiple roles per host nicely
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user