44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=newcloud_undercloud"
|
|
|
|
- name: make the box be real
|
|
hosts: newcloud_undercloud
|
|
user: root
|
|
gather_facts: True
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
roles:
|
|
- base
|
|
- hosts
|
|
- sudo
|
|
- undercloud
|
|
- apache
|
|
|
|
- role: httpd/mod_ssl
|
|
|
|
- role: httpd/website
|
|
site_name: controller.fedorainfracloud.org
|
|
ssl: true
|
|
sslonly: true
|
|
certbot: true
|
|
|
|
- role: httpd/reverseproxy
|
|
website: controller.fedorainfracloud.org
|
|
destname: overcloud
|
|
balancer_name: controller.fedorainfracloud.org
|
|
balancer_members: ['192.168.20.51:80']
|
|
certbot_addhost: undercloud01.fedorainfracloud.org
|
|
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
|
|
|
|
pre_tasks:
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
|
|
|
handlers:
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|