ansible/playbooks/webservers.yml
2020-07-23 23:13:16 -05:00

49 lines
1.1 KiB
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: webservers
roles:
- apache-php
- hosts: fedi1
roles:
- role: backups
tags: [ backups ]
- role: matrix
tags: [ fedi, matrix ]
- hosts: web1
roles:
- role: backups
vars:
backups_outdir: "/cold/backups"
tags: [ backups ]
- role: gitea
vars:
gitea_root_directory: "/cold/gitea-repositories/"
tags: [ web, gitea ]
- role: grafana
tags: [ web, grafana ]
- role: nextcloud
tags: [ web, nextcloud ]
- role: redirect
vars:
redirect_from: "9iron.club"
redirect_to: "www.9iron.club"
redirect_webroot: "/var/www/redirect"
tags: [ web, redirect ]
- role: gitweb
vars:
gitweb_repo: "https://git.9iron.club/salt/www"
gitweb_url: "www.9iron.club"
gitweb_webroot: "/var/www/www"
tags: [ web, webroot ]
- hosts: web2
roles:
- role: backups
tags: [ backups ]
- role: postfix-ses
tags: [ postfix ]
- role: nagios
vars:
nagios_url: "nagios.9iron.club"
tags: [ web, nagios ]