♻️: move playbooks from root

This commit is contained in:
VC
2024-07-05 11:53:54 +02:00
parent 262aa7b112
commit c60460f7ea
26 changed files with 1 additions and 0 deletions

7
playbooks/bittorrent.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy transmission
hosts: transmission
diff: true
roles:
- bittorrent

View File

@@ -0,0 +1,7 @@
---
- name: Deploy elasticsearch
hosts: elasticsearchservers
diff: true
roles:
- elasticsearch

14
playbooks/firewall.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- name: Retrieve network info
hosts: all:!disabled_server_conf:!machinbox.mateu.be
gather_facts: true
gather_subset:
- network
tasks: []
- name: Deploy firewall
hosts: router
diff: true
roles:
- firewall

7
playbooks/ftp.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy ftp
hosts: ftpservers
diff: true
roles:
- ftp

7
playbooks/garage.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy garage
hosts: garageservers
diff: true
roles:
- garage

7
playbooks/icecast2.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy icecast
hosts: icecastservers
diff: true
roles:
- icecast2

View File

@@ -0,0 +1,14 @@
---
- name: Retrieve network info
hosts: webservers:!disabled_loadbalanced_webservers
gather_facts: true
gather_subset:
- network
tasks: []
- name: Deploy haproxy
hosts: loadbalancers
diff: true
roles:
- haproxy

13
playbooks/mail.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: Deploy mail
hosts: mailservers
diff: true
roles:
- postfix
- dovecot
- opendkim
- opendmarc
- postgrey
- spamassassin
- mailman

7
playbooks/mariadb.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy mariadb
hosts: mariadbservers
diff: true
roles:
- mariadb

10
playbooks/mastodon.yml Normal file
View File

@@ -0,0 +1,10 @@
---
- name: Deploy mastodon
hosts: mastodonservers
diff: true
roles:
- nodejs
- yarn
- redis
- mastodon

7
playbooks/mumble.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy mumble
hosts: mumbleservers
diff: true
roles:
- mumble

13
playbooks/munin.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: Deploy munin clients
hosts: all:!disabled_munin
diff: true
roles:
- munin_client
- name: Deploy munin server
hosts: muninservers
diff: true
roles:
- munin_server

7
playbooks/nsd.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy NSD
hosts: nsdservers
diff: true
roles:
- nsd

13
playbooks/nut.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: Deploy nut server
hosts: nut_server
diff: true
roles:
- nut_server
- name: Deploy nut clients
hosts: nut_client
diff: true
roles:
- nut_client

12
playbooks/peertube.yml Normal file
View File

@@ -0,0 +1,12 @@
---
- name: Deploy peertube
hosts: peertubeservers
gather_facts: true
diff: true
roles:
- nodejs
- yarn
- redis
- postgres
- peertube

7
playbooks/pgsql.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy pgsql
hosts: pgsqlservers
diff: true
roles:
- postgres

7
playbooks/php.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy php
hosts: phpservers
diff: true
roles:
- php

7
playbooks/restic.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy restic
hosts: resticservers
diff: true
roles:
- restic

50
playbooks/site.yml Normal file
View File

@@ -0,0 +1,50 @@
---
- name: Run system playbook
import_playbook: system.yml
- name: Run usb playbook
import_playbook: usb.yml
- name: Run nsd playbook
import_playbook: nsd.yml
- name: Run smtprelay playbook
import_playbook: smtprelay.yml
- name: Run restic playbook
import_playbook: restic.yml
- name: Run nut playbook
import_playbook: nut.yml
- name: Run syslog playbook
import_playbook: syslog.yml
- name: Run firewall playbook
import_playbook: firewall.yml
- name: Run mail playbook
import_playbook: mail.yml
- name: Run xmpp playbook
import_playbook: xmpp.yml
- name: Run webservers playbook
import_playbook: webservers.yml
- name: Run loadbalancinghttp playbook
import_playbook: loadbalancinghttp.yml
- name: Run php playbook
import_playbook: php.yml
- name: Run mariadb playbook
import_playbook: mariadb.yml
- name: Run pgsql playbook
import_playbook: pgsql.yml
- name: Run mastodon playbook
import_playbook: mastodon.yml
- name: Run bittorent playbook
import_playbook: bittorrent.yml
- name: Run mumble playbook
import_playbook: mumble.yml
- name: Run icecast2 playbook
import_playbook: icecast2.yml
- name: Run munin playbook
import_playbook: munin.yml
- name: Run ftp playbook
import_playbook: ftp.yml
- name: Run garage playbook
import_playbook: garage.yml
- name: Run peertube playbook
import_playbook: peertube.yml
- name: Run elasticsearch playbook
import_playbook: elasticsearch.yml

7
playbooks/smtprelay.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy smtp relay
hosts: all:!disabled_server_conf:!machinbox.mateu.be:!mail.dmz.mateu.be:!frederica.dmz.mateu.be
diff: true
roles:
- smtprelay

7
playbooks/syslog.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy rsyslog
hosts: all:!disabled_syslog
diff: true
roles:
- rsyslog

8
playbooks/system.yml Normal file
View File

@@ -0,0 +1,8 @@
---
- name: Deploy system tools
hosts: all:!disabled_syslog
diff: true
roles:
- system
- x509

7
playbooks/usb.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy usb
hosts: hypervisors
diff: true
roles:
- usb

12
playbooks/webservers.yml Normal file
View File

@@ -0,0 +1,12 @@
---
- name: Deploy web servers
hosts: webservers
diff: true
roles:
- role: nginx
tags:
- generic
- role: webapps
tags:
- specific

7
playbooks/xmpp.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Deploy xmpp
hosts: xmppservers
diff: true
roles:
- xmpp