-
Notifications
You must be signed in to change notification settings - Fork 3
/
deploy-infra.yml
38 lines (32 loc) · 937 Bytes
/
deploy-infra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- hosts: localhost
connection: local
gather_facts: no
roles:
- role: cloudformation-rancher
- hosts: rancher:!cloudformation
gather_facts: False
tasks:
- name: Ensure python is installed
raw: sudo bash -c "test -e /usr/bin/python || (apt -qqy update && apt install -qy python-minimal)"
- name: Install common packages
hosts: rancher-dev:!cloudformation
gather_facts: yes
become: yes
roles:
- role: common
- name: Install Docker
hosts: rancher-server:rancher-agent
become: yes
roles:
- angstwad.docker_ubuntu
- name: Setup Rancher HA
hosts: rancher-server
become: yes
roles:
- role: rancher-ha
rancher_host: rancherdev.io.nuxeo.com
mysql_host: "{{ hostvars['localhost']['cf_rancher'].stack_outputs.DBHost}}"
mysql_port: "{{ hostvars['localhost']['cf_rancher'].stack_outputs.DBPort}}"
mysql_username: rancher
mysql_password: rancherpassword