improve script inovcation

This commit is contained in:
Pim Kunis 2023-01-16 22:28:00 +01:00
parent 3150bc5316
commit 64709cab98
17 changed files with 20 additions and 70 deletions

View file

@ -1,2 +1,8 @@
all:
ansible-playbook playbooks/all.yml
backup:
ansible-playbook playbooks/backup.yml
%:
ansible-playbook playbooks/$@.yml
ansible-playbook playbooks/all.yml --tags "$@"

View file

@ -1,18 +1,18 @@
- name: Setup homeserver
hosts: homeserver
roles:
- ssh
- borg
- nsd
- syncthing
- kms
- pizzeria
- forgejo
- radicale
- mastodon
- seafile
- jitsi
- {role: 'ssh', tags: 'ssh'}
- {role: 'borg', tags: 'borg'}
- {role: 'nsd', tags: 'nsd'}
- {role: 'syncthing', tags: 'syncthing'}
- {role: 'kms', tags: 'kms'}
- {role: 'pizzeria', tags: 'pizzeria'}
- {role: 'forgejo', tags: 'forgejo'}
- {role: 'radicale', tags: 'radicale'}
- {role: 'mastodon', tags: 'mastodon'}
- {role: 'seafile', tags: 'seafile'}
- {role: 'jitsi', tags: 'jitsi'}
- name: Setup dataserver
hosts: dataserver
roles:
- dataserver
- {role: 'dataserver', tags: 'dataserver'}

View file

@ -1,4 +0,0 @@
- name: Install borg
hosts: homeserver
roles:
- borg

View file

@ -1,4 +0,0 @@
- name: Install dataserver
hosts: dataserver
roles:
- dataserver

View file

@ -1,4 +0,0 @@
- name: Configure firewall
hosts: homeserver
roles:
- firewall

View file

@ -1,4 +0,0 @@
- name: Install forgejo
hosts: homeserver
roles:
- forgejo

View file

@ -1,4 +0,0 @@
- name: Install Jitsi Meet
hosts: homeserver
roles:
- jitsi

View file

@ -1,4 +0,0 @@
- name: Install kms stateless server
hosts: homeserver
roles:
- kms

View file

@ -1,4 +0,0 @@
- name: Install Mastodon
hosts: homeserver
roles:
- mastodon

View file

@ -1,4 +0,0 @@
- name: Install nsd
hosts: homeserver
roles:
- nsd

View file

@ -1,4 +0,0 @@
- name: Install pizzeria static website
hosts: homeserver
roles:
- pizzeria

View file

@ -1,4 +0,0 @@
- name: Install Radicale
hosts: homeserver
roles:
- radicale

View file

@ -1,4 +0,0 @@
- name: Install Seafile
hosts: homeserver
roles:
- seafile

View file

@ -1,4 +0,0 @@
- name: Configure SSH
hosts: homeserver
roles:
- ssh

View file

@ -1,4 +0,0 @@
- name: Install syncthing
hosts: homeserver
roles:
- syncthing

View file

@ -1,4 +0,0 @@
- name: Install traefik
hosts: homeserver
roles:
- traefik