add proxy hosts

This commit is contained in:
Timo Makinen 2019-05-28 00:28:29 +03:00
parent dd19c94511
commit 5dc54dd8eb
5 changed files with 122 additions and 0 deletions

40
playbooks/proxy.yml Normal file
View file

@ -0,0 +1,40 @@
---
- import_playbook: "include/vm-create.yml myhosts=proxy"
- name: configure instance
hosts: proxy
user: root
gather_facts: true
vars_files:
- "{{ ansible_dir_private }}/vars.yml"
roles:
- base
- nginx/server
- role: nginx/site
site: foo.sh
redirect: https://www.foo.sh/
- role: nginx/site
site: autoconfig.foo.sh
- role: nginx/site
site: boot.foo.sh
- role: nginx/site
site: bitbucket.foo.sh
redirect: https://bitbucket.org/tmakinen/
- role: nginx/site
site: git.foo.sh
proxy: https://git02.home.foo.sh/
- role: nginx/site
site: id.foo.sh
proxy: https://ldap01.home.foo.sh/
- role: nginx/site
site: mirrors.foo.sh
proxy: https://mirror01.home.foo.sh/
- role: nginx/site
site: print.foo.sh
proxy: https://print01.home.foo.sh/
- role: nginx/site
site: wpad.foo.sh
- role: nginx/site
site: www.foo.sh