diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b593a85 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vault_password diff --git a/Makefile b/Makefile index c3f4d59..69e78de 100644 --- a/Makefile +++ b/Makefile @@ -1,46 +1,2 @@ -all: - ansible-playbook playbooks/all.yml -i inventory/hosts.yml --ask-vault-pass - -mastodon: - ansible-playbook playbooks/mastodon.yml -i inventory/hosts.yml --ask-vault-pass - -syncthing: - ansible-playbook playbooks/syncthing.yml -i inventory/hosts.yml --ask-vault-pass - -nsd: - ansible-playbook playbooks/nsd.yml -i inventory/hosts.yml --ask-vault-pass - -forgejo: - ansible-playbook playbooks/forgejo.yml -i inventory/hosts.yml --ask-vault-pass - -radicale: - ansible-playbook playbooks/radicale.yml -i inventory/hosts.yml - -pizzeria: - ansible-playbook playbooks/pizzeria.yml -i inventory/hosts.yml - -ssh: - ansible-playbook playbooks/ssh.yml -i inventory/hosts.yml - -traefik: - ansible-playbook playbooks/traefik.yml -i inventory/hosts.yml - -kms: - ansible-playbook playbooks/kms.yml -i inventory/hosts.yml - -borg: - ansible-playbook playbooks/borg.yml -i inventory/hosts.yml --ask-vault-pass - -dataserver: - ansible-playbook playbooks/dataserver.yml -i inventory/hosts.yml --ask-vault-pass - -seafile: - ansible-playbook playbooks/seafile.yml -i inventory/hosts.yml --ask-vault-pass - -jitsi: - ansible-playbook playbooks/jitsi.yml -i inventory/hosts.yml --ask-vault-pass - -backup: - ansible-playbook playbooks/backup.yml -i inventory/hosts.yml - -.PHONY: run +%: + ansible-playbook playbooks/$@.yml diff --git a/ansible.cfg b/ansible.cfg index 2b8bf76..dedca3f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,5 @@ [defaults] # (pathspec) Colon separated paths in which Ansible will search for Roles. roles_path=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles +vault_password_file=./.vault_password +inventory=inventory