ansible/playbooks/proxy.yml

127 lines
4.1 KiB
YAML

---
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
vars:
myhosts: proxy
- name: Configure instance
hosts: proxy
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- ifstated
- nginx
- nginx_logsync
- role: nginx_site
nginx_site_name: ca.foo.sh
- role: nginx_site
nginx_site_name: foo.monster
- role: nginx_site
nginx_site_name: tuiradc.fi
nginx_site_redirect: https://facebook.com/TuiraDC
- role: nginx_site
nginx_site_name: www.tuiradc.fi
nginx_site_redirect: https://facebook.com/TuiraDC
- role: nginx_site
nginx_site_name: foo.sh
nginx_site_redirect: https://www.foo.sh/
- role: nginx_site
nginx_site_name: apps.foo.sh
nginx_site_load_balance_method: ip_hash
nginx_site_proxy:
- https://oci-node01.home.foo.sh
- https://oci-node02.home.foo.sh
- role: nginx_site
nginx_site_name: audiobooks.foo.sh
nginx_site_proxy: https://audiobooks02.home.foo.sh/
- role: nginx_site
nginx_site_name: autoconfig.foo.sh
- role: nginx_site
nginx_site_name: boot.foo.sh
- role: nginx_site
nginx_site_name: bitbucket.foo.sh
nginx_site_redirect: https://bitbucket.org/tmakinen/
- role: nginx_site
nginx_site_name: cctv.foo.sh
nginx_site_proxy: https://frigate02.home.foo.sh/frigate/
- role: nginx_site
nginx_site_name: certbot.home.foo.sh
nginx_site_proxy: https://certbot.home.foo.sh/
- role: nginx_site
nginx_site_name: chat.foo.sh
nginx_site_proxy:
- https://oci-node01.home.foo.sh/rocketchat/
- https://oci-node02.home.foo.sh/rocketchat/
- role: nginx_site
nginx_site_name: collab.foo.sh
nginx_site_proxy: https://collab01.home.foo.sh/
- role: nginx_site
nginx_site_name: devel01.foo.sh
nginx_site_proxy: https://devel01.home.foo.sh/
- role: nginx_site
nginx_site_name: dns.home.foo.sh
nginx_site_redirect: https://www.foo.sh/
- role: nginx_site
nginx_site_name: git.foo.sh
nginx_site_proxy: https://gitea02.home.foo.sh/
- role: nginx_site
nginx_site_name: gitea.foo.sh
nginx_site_redirect: https://git.foo.sh/
- role: nginx_site
nginx_site_name: ha.foo.sh
nginx_site_proxy: https://homeassistant01.home.foo.sh/
- role: nginx_site
nginx_site_name: id.foo.sh
nginx_site_proxy:
- https://oci-node01.home.foo.sh
- https://oci-node02.home.foo.sh
- role: nginx_site
nginx_site_name: idp.foo.sh
nginx_site_proxy: https://oci-node01.home.foo.sh/ipsilon/
- role: nginx_site
nginx_site_name: influxdb.foo.sh
nginx_site_proxy: https://influxdb01.home.foo.sh/
- role: nginx_site
nginx_site_name: iot.foo.sh
nginx_site_redirect: https://www.foo.sh/
- role: nginx_site
nginx_site_name: mirrors.foo.sh
nginx_site_proxy: https://mirror02.home.foo.sh/
- role: nginx_site
nginx_site_name: movies.foo.sh
nginx_site_proxy:
- https://oci-node01.home.foo.sh/php4dvd/
- role: nginx_site
nginx_site_name: mta-sts.foo.sh
- role: nginx_site
nginx_site_name: noc.foo.sh
nginx_site_proxy:
- https://oci-node01.home.foo.sh/grafana/
- https://oci-node02.home.foo.sh/grafana/
- role: nginx_site
nginx_site_name: print.foo.sh
nginx_site_proxy: https://print01.home.foo.sh:631/
- role: nginx_site
nginx_site_name: registry.foo.sh
nginx_site_proxy:
- "registry01.home.foo.sh:5000"
- "registry02.home.foo.sh:5000"
- role: nginx_site
nginx_site_name: scan.foo.sh
nginx_site_proxy:
- https://sane02.home.foo.sh/scanservjs/
- role: nginx_site
nginx_site_name: webmail.foo.sh
nginx_site_load_balance_method: ip_hash
nginx_site_proxy:
- https://oci-node01.home.foo.sh/roundcube/
- https://oci-node02.home.foo.sh/roundcube/
- role: nginx_site
nginx_site_name: wpad.foo.sh
- role: nginx_site
nginx_site_name: www.foo.sh