-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
52 lines (45 loc) · 1.14 KB
/
site.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
## This playbook deploys the whole application stack in this site.
- name: Deploy RDS Infratructure
hosts: localhost
connection: local
gather_facts: false
vars:
# Global AWS Variables
region: eu-west-2
vpc_name: dev
# VPC Variables
vpc_cidr: 10.5.0.0/16
public_subnet_1_cidr: 10.5.0.0/24
public_subnet_1_az: eu-west-2a
public_subnet_2_cidr: 10.5.1.0/24
public_subnet_2_az: eu-west-2b
private_subnet_1_cidr: 10.5.2.0/24
private_subnet_1_az: eu-west-2a
private_subnet_2_cidr: 10.5.3.0/24
private_subnet_2_az: eu-west-2b
# Bastion Variables (Ubuntu 16.04)
ami_id: "ami-996372fd" #eu-west-2
# ami_id: "ami-1e339e71" #eu-central-1
keypair_name: "hostykey"
# RDS Variables
rds_user: root
rds_pass: Default_Pass123!
rds_instance_type: db.t2.small
rds_size_gb: 15
rds_parameter_engine: mysql5.6
rds_instance_engine: 5.6.35
rds_parameters:
- { param: 'binlog_format', value: 'ROW' }
- { param: 'general_log', value: '1' }
roles:
- vpc
- bastion
- natclient
- rds
# - hosts: natclient
# become: yes
#
# roles:
# - common
# - mysql-client