Simplify makefile

This commit is contained in:
Ivan R. 2024-09-29 18:32:13 +05:00
parent 3f72f0e751
commit b309446be7
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -1,34 +1,10 @@
all: networkvm webserver
common_args := -i inventory.ini --ask-vault-pass -e@vaulted_vars.yml common_args := -i inventory.ini --ask-vault-pass -e@vaulted_vars.yml
common: all: common networkvm webserver
ansible-playbook $(common_args) common.yml
networkvm: wireguard networkvm: wireguard
webserver: tls haproxy docker minio postgresql mastodon vaultwarden webserver: tls haproxy docker minio postgresql mastodon vaultwarden
wireguard: %:
ansible-playbook $(common_args) wireguard.yml ansible-playbook $(common_args) $*.yml
tls:
ansible-playbook $(common_args) tls.yml
haproxy:
ansible-playbook $(common_args) haproxy.yml
docker:
ansible-playbook $(common_args) docker.yml
minio:
ansible-playbook $(common_args) minio.yml
postgresql:
ansible-playbook $(common_args) postgresql.yml
mastodon:
ansible-playbook $(common_args) mastodon.yml
vaultwarden:
ansible-playbook $(common_args) vaultwarden.yml