29 lines
539 B
YAML
29 lines
539 B
YAML
---
|
|
- import_playbook: "include/deploy-kvm-guest.yml myhosts=relay"
|
|
|
|
- name: configure instance
|
|
hosts: relay
|
|
user: root
|
|
gather_facts: true
|
|
|
|
vars_files:
|
|
- "{{ ansible_private }}/vars.yml"
|
|
|
|
roles:
|
|
- base
|
|
- ifstated
|
|
- relayd
|
|
- nginx/server
|
|
|
|
tasks:
|
|
- include_role:
|
|
name: nginx/site
|
|
vars:
|
|
site: "{{ sitename }}"
|
|
redirect: https://www.foo.sh/
|
|
with_items:
|
|
- ldap.foo.sh
|
|
- ldap01.foo.sh
|
|
- loghost.foo.sh
|
|
loop_control:
|
|
loop_var: sitename
|