add roles/vhosts/HAProxy
This commit is contained in:
parent
d47cd6ff5e
commit
9380042891
9
deploy_xcontrol_dashboard.yml
Normal file
9
deploy_xcontrol_dashboard.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- name: setup xcontrol dashboard
|
||||
hosts: all
|
||||
become: true
|
||||
vars:
|
||||
xcontrol_dashboard_active_color: blue
|
||||
xcontrol_dashboard_blue_image: cloudneutral/dashboard
|
||||
xcontrol_dashboard_green_image: cloudneutral/dashboard
|
||||
roles:
|
||||
- roles/docker/xcontrol-dashboard/
|
||||
15
roles/vhosts/HAProxy/setup-HAProxy-vhost.yml
Normal file
15
roles/vhosts/HAProxy/setup-HAProxy-vhost.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Provision HAProxy HTTPS vhost
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Install HAProxy and certbot
|
||||
import_tasks: tasks/install.yml
|
||||
|
||||
- name: Issue and renew certificates
|
||||
import_tasks: tasks/certbot.yml
|
||||
|
||||
- name: Configure HAProxy vhost
|
||||
import_tasks: tasks/configure.yml
|
||||
@ -10,7 +10,12 @@
|
||||
|
||||
- name: Determine repository architecture
|
||||
ansible.builtin.set_fact:
|
||||
docker_repo_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
|
||||
docker_repo_arch: >-
|
||||
{{
|
||||
'amd64' if ansible_architecture == 'x86_64'
|
||||
else 'arm64' if ansible_architecture in ['aarch64', 'arm64']
|
||||
else ansible_architecture
|
||||
}}
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
|
||||
- name: Ensure platform is supported
|
||||
|
||||
Loading…
Reference in New Issue
Block a user