mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Removed host prefix
This commit is contained in:
parent
cd9eca8ee3
commit
3157f504b0
78
playbook.yml
78
playbook.yml
@ -15,26 +15,26 @@
|
|||||||
- server_native-free-disc-space
|
- server_native-free-disc-space
|
||||||
- server_native-btrfs-health-check
|
- server_native-btrfs-health-check
|
||||||
- name: setup standard wireguard hosts
|
- name: setup standard wireguard hosts
|
||||||
hosts: wireguard_hosts
|
hosts: wireguard
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- server_native-wireguard
|
- server_native-wireguard
|
||||||
- name: setup wireguard hosts behind firewall\nat
|
- name: setup wireguard hosts behind firewall\nat
|
||||||
hosts: wireguard_behind_firewall_hosts
|
hosts: wireguard_behind_firewall
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- server_native-wireguard-behind-firewall
|
- server_native-wireguard-behind-firewall
|
||||||
|
|
||||||
# Native Webserver Roles
|
# Native Webserver Roles
|
||||||
- name: setup homepages
|
- name: setup homepages
|
||||||
hosts: homepage_hosts
|
hosts: homepage
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_native-homepage
|
- role: server_native-homepage
|
||||||
vars:
|
vars:
|
||||||
domain: "{{top_domain}}"
|
domain: "{{top_domain}}"
|
||||||
- name: setup redirect hosts
|
- name: setup redirect hosts
|
||||||
hosts: redirect_hosts
|
hosts: redirect
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_native-https-redirect
|
- role: server_native-https-redirect
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
# Docker Roles
|
# Docker Roles
|
||||||
- name: setup nextcloud hosts
|
- name: setup nextcloud hosts
|
||||||
hosts: nextcloud_hosts
|
hosts: nextcloud
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-nextcloud
|
- role: server_docker-nextcloud
|
||||||
@ -51,7 +51,7 @@
|
|||||||
domain: cloud.{{top_domain}}
|
domain: cloud.{{top_domain}}
|
||||||
http_port: 8001
|
http_port: 8001
|
||||||
- name: setup gitea hosts
|
- name: setup gitea hosts
|
||||||
hosts: gitea_hosts
|
hosts: gitea
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-gitea
|
- role: server_docker-gitea
|
||||||
@ -61,7 +61,7 @@
|
|||||||
ssh_port: 2201
|
ssh_port: 2201
|
||||||
run_mode: prod
|
run_mode: prod
|
||||||
- name: setup wordpress hosts
|
- name: setup wordpress hosts
|
||||||
hosts: wordpress_hosts
|
hosts: wordpress
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-wordpress
|
- role: server_docker-wordpress
|
||||||
@ -69,7 +69,7 @@
|
|||||||
domains: "{{wordpress_domains}}"
|
domains: "{{wordpress_domains}}"
|
||||||
http_port: 8003
|
http_port: 8003
|
||||||
- name: setup mediawiki hosts
|
- name: setup mediawiki hosts
|
||||||
hosts: mediawiki_hosts
|
hosts: mediawiki
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-mediawiki
|
- role: server_docker-mediawiki
|
||||||
@ -77,7 +77,7 @@
|
|||||||
domain: wiki.{{top_domain}}
|
domain: wiki.{{top_domain}}
|
||||||
http_port: 8004
|
http_port: 8004
|
||||||
- name: setup mybb hosts
|
- name: setup mybb hosts
|
||||||
hosts: mybb_hosts
|
hosts: mybb
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-mybb
|
- role: server_docker-mybb
|
||||||
@ -85,12 +85,12 @@
|
|||||||
domain: forum.{{top_domain}}
|
domain: forum.{{top_domain}}
|
||||||
http_port: 8005
|
http_port: 8005
|
||||||
- name: setup turn server
|
- name: setup turn server
|
||||||
hosts: turn_server_hosts
|
hosts: turn_server
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-turn-server
|
- role: server_docker-turn-server
|
||||||
- name: setup yourls hosts
|
- name: setup yourls hosts
|
||||||
hosts: yourls_hosts
|
hosts: yourls
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-yourls
|
- role: server_docker-yourls
|
||||||
@ -98,7 +98,7 @@
|
|||||||
domain: s.{{top_domain}}
|
domain: s.{{top_domain}}
|
||||||
http_port: 8006
|
http_port: 8006
|
||||||
- name: setup mailu hosts
|
- name: setup mailu hosts
|
||||||
hosts: mailu_hosts
|
hosts: mailu
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-mailu
|
- role: server_docker-mailu
|
||||||
@ -106,7 +106,7 @@
|
|||||||
domain: "mail.{{top_domain}}"
|
domain: "mail.{{top_domain}}"
|
||||||
http_port: 8007
|
http_port: 8007
|
||||||
- name: setup elk hosts
|
- name: setup elk hosts
|
||||||
hosts: elk_hosts
|
hosts: elk
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-elk
|
- role: server_docker-elk
|
||||||
@ -114,7 +114,7 @@
|
|||||||
domain: "elk.{{top_domain}}"
|
domain: "elk.{{top_domain}}"
|
||||||
http_port: 8008
|
http_port: 8008
|
||||||
- name: setup mastodon hosts
|
- name: setup mastodon hosts
|
||||||
hosts: mastodon_hosts
|
hosts: mastodon
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-mastodon
|
- role: server_docker-mastodon
|
||||||
@ -123,7 +123,7 @@
|
|||||||
http_port: 8009
|
http_port: 8009
|
||||||
stream_port: 4001
|
stream_port: 4001
|
||||||
- name: setup pixelfed hosts
|
- name: setup pixelfed hosts
|
||||||
hosts: pixelfed_hosts
|
hosts: pixelfed
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-pixelfed
|
- role: server_docker-pixelfed
|
||||||
@ -131,7 +131,7 @@
|
|||||||
domain: pixelfed.{{top_domain}}
|
domain: pixelfed.{{top_domain}}
|
||||||
http_port: 8010
|
http_port: 8010
|
||||||
- name: setup peertube hosts
|
- name: setup peertube hosts
|
||||||
hosts: peertube_hosts
|
hosts: peertube
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-peertube
|
- role: server_docker-peertube
|
||||||
@ -139,14 +139,14 @@
|
|||||||
domain: peertube.{{top_domain}}
|
domain: peertube.{{top_domain}}
|
||||||
http_port: 8011
|
http_port: 8011
|
||||||
- name: setup bigbluebutton hosts
|
- name: setup bigbluebutton hosts
|
||||||
hosts: bigbluebutton_hosts
|
hosts: bigbluebutton
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-bigbluebutton
|
- role: server_docker-bigbluebutton
|
||||||
vars:
|
vars:
|
||||||
domain: bbb.{{top_domain}}
|
domain: bbb.{{top_domain}}
|
||||||
- name: setup funkwhale hosts
|
- name: setup funkwhale hosts
|
||||||
hosts: funkwhale_hosts
|
hosts: funkwhale
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-funkwhale
|
- role: server_docker-funkwhale
|
||||||
@ -154,7 +154,7 @@
|
|||||||
domain: funkwhale.{{top_domain}}
|
domain: funkwhale.{{top_domain}}
|
||||||
http_port: 8012
|
http_port: 8012
|
||||||
- name: setup roulette-wheel hosts
|
- name: setup roulette-wheel hosts
|
||||||
hosts: roulette_wheel_hosts
|
hosts: roulette_wheel
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-roulette-wheel
|
- role: server_docker-roulette-wheel
|
||||||
@ -162,7 +162,7 @@
|
|||||||
domain: roulette.{{top_domain}}
|
domain: roulette.{{top_domain}}
|
||||||
http_port: 8013
|
http_port: 8013
|
||||||
- name: setup akaunting hosts
|
- name: setup akaunting hosts
|
||||||
hosts: akaunting_hosts
|
hosts: akaunting
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_docker-akaunting
|
- role: server_docker-akaunting
|
||||||
@ -172,7 +172,7 @@
|
|||||||
|
|
||||||
# Backup Roles
|
# Backup Roles
|
||||||
- name: setup replica backup hosts
|
- name: setup replica backup hosts
|
||||||
hosts: replica_backup_hosts
|
hosts: replica_backup
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: server_native-pull-primary-backups
|
- role: server_native-pull-primary-backups
|
||||||
@ -186,109 +186,109 @@
|
|||||||
- pc_driver-non-free
|
- pc_driver-non-free
|
||||||
|
|
||||||
- name: pc_application-wireguard
|
- name: pc_application-wireguard
|
||||||
hosts: application_wireguard_hosts
|
hosts: application_wireguard
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_application-wireguard
|
- pc_application-wireguard
|
||||||
|
|
||||||
- name: pc_collection-office
|
- name: pc_collection-office
|
||||||
hosts: collection_officetools_hosts
|
hosts: collection_officetools
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-office
|
- pc_collection-office
|
||||||
|
|
||||||
- name: pc_collection-designer
|
- name: pc_collection-designer
|
||||||
hosts: collection_designer_hosts
|
hosts: collection_designer
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-designer
|
- pc_collection-designer
|
||||||
|
|
||||||
- name: pc_collection-torrent
|
- name: pc_collection-torrent
|
||||||
hosts: collection_torrent_hosts
|
hosts: collection_torrent
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-torrent
|
- pc_collection-torrent
|
||||||
|
|
||||||
- name: pc_collection-streamer
|
- name: pc_collection-streamer
|
||||||
hosts: collection_streamer_hosts
|
hosts: collection_streamer
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-streamer
|
- pc_collection-streamer
|
||||||
|
|
||||||
- name: pc_collection-bluray-player
|
- name: pc_collection-bluray-player
|
||||||
hosts: collection_bluray_player_hosts
|
hosts: collection_bluray_player
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-bluray-player
|
- pc_collection-bluray-player
|
||||||
|
|
||||||
- name: pc_driver-intel
|
- name: pc_driver-intel
|
||||||
hosts: intel_hosts
|
hosts: intel
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_driver-intel
|
- pc_driver-intel
|
||||||
|
|
||||||
- name: pc_application-latex
|
- name: pc_application-latex
|
||||||
hosts: latex_hosts
|
hosts: latex
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_application-latex
|
- pc_application-latex
|
||||||
|
|
||||||
- name: GNOME setup
|
- name: GNOME setup
|
||||||
hosts: gnome_hosts
|
hosts: gnome
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_system-gnome
|
- pc_system-gnome
|
||||||
|
|
||||||
- name: setup msi rgb keyboard
|
- name: setup msi rgb keyboard
|
||||||
hosts: msi_perkeyrgb_hosts
|
hosts: msi_perkeyrgb
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_driver-msi-perkeyrgb
|
- pc_driver-msi-perkeyrgb
|
||||||
|
|
||||||
- name: setup ssh hosts
|
- name: setup ssh hosts
|
||||||
hosts: ssh_hosts
|
hosts: ssh
|
||||||
become: false
|
become: false
|
||||||
roles:
|
roles:
|
||||||
- pc_application-ssh
|
- pc_application-ssh
|
||||||
|
|
||||||
- name: setup swapfile hosts
|
- name: setup swapfile hosts
|
||||||
hosts: swapfile_hosts
|
hosts: swapfile
|
||||||
become: false
|
become: false
|
||||||
roles:
|
roles:
|
||||||
- system-swapfile
|
- system-swapfile
|
||||||
|
|
||||||
- name: setup gaming hosts
|
- name: setup gaming hosts
|
||||||
hosts: gaming_hosts
|
hosts: gaming
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-games
|
- pc_collection-games
|
||||||
|
|
||||||
- name: setup entertainment hosts
|
- name: setup entertainment hosts
|
||||||
hosts: entertainment_hosts
|
hosts: entertainment
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_collection-entertainment
|
- pc_collection-entertainment
|
||||||
|
|
||||||
- name: setup multiprinter hosts
|
- name: setup multiprinter hosts
|
||||||
hosts: epson_multiprinter_hosts
|
hosts: epson_multiprinter
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_driver-epson-multiprinter
|
- pc_driver-epson-multiprinter
|
||||||
|
|
||||||
- name: setup torbrowser hosts
|
- name: setup torbrowser hosts
|
||||||
hosts: torbrowser_hosts
|
hosts: torbrowser
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_application-torbrowser
|
- pc_application-torbrowser
|
||||||
|
|
||||||
- name: setup nextcloud
|
- name: setup nextcloud
|
||||||
hosts: nextcloud_hosts
|
hosts: nextcloud
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_application-nextcloud
|
- pc_application-nextcloud
|
||||||
|
|
||||||
- name: setup docker
|
- name: setup docker
|
||||||
hosts: docker_hosts
|
hosts: docker
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- pc_application-docker
|
- pc_application-docker
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Pulls the remote backups from multiple hosts
|
# Pulls the remote backups from multiple hosts
|
||||||
hosts="{{pull_remote_backups_hosts}}";
|
hosts="{{pull_remote_backups}}";
|
||||||
errors=0
|
errors=0
|
||||||
for host in $hosts; do
|
for host in $hosts; do
|
||||||
bash {{docker_pull_primary_backups_folder}}pull-remote-backup.sh $host || ((errors+=1));
|
bash {{docker_pull_primary_backups_folder}}pull-remote-backup.sh $host || ((errors+=1));
|
||||||
|
@ -46,9 +46,9 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|||||||
#AuthorizedKeysCommand none
|
#AuthorizedKeysCommand none
|
||||||
#AuthorizedKeysCommandUser nobody
|
#AuthorizedKeysCommandUser nobody
|
||||||
|
|
||||||
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
# For this to work you will also need host keys in /etc/ssh/ssh_known
|
||||||
#HostbasedAuthentication no
|
#HostbasedAuthentication no
|
||||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
# Change to yes if you don't trust ~/.ssh/known for
|
||||||
# HostbasedAuthentication
|
# HostbasedAuthentication
|
||||||
#IgnoreUserKnownHosts no
|
#IgnoreUserKnownHosts no
|
||||||
# Don't read the user's ~/.rhosts and ~/.shosts files
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||||
|
Loading…
Reference in New Issue
Block a user