-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.example.yml
50 lines (42 loc) · 1.51 KB
/
site.example.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
---
# This is an ansible main playbook for the site you deploy
- hosts: local
sudo: yes
vars:
# If development, all error reporting will be detailed etc. If production - production settings apply
env_name: development
# The timezone of the server being configureds
timezone: Europe/Moscow
# Locale to configure server in
locale_long: ru_RU
locale_short: ru
# Project name in various spelling to substitute into file, folder paths and configuration files
project_name_camel: OOTalks
project_name_snake: oo_talks
project_name_www: oo-talks
roles:
# Install web server and php
- role: web
# User for nginx to run at
http_user: "{{ 'vagrant' if env_name == 'development' else 'nginx' }}"
# If your project root is your web root, leave it blank (""). Or else enter here relative path to web root
# For example, this will be "web" for symfony apps.
site_web_folder: "web"
# The application type. "symfony" and "regular" is now supported. This is to setup nginx rules correctly
app_type: "symfony"
# Register this domains at nginx
domains:
- "www.{{ project_name_www }}.local"
- "{{ project_name_www }}.local"
# SSL support
ssl: no
# Install Postres database server
- role: postgres
database: "{{ project_name_snake }}"
user: "{{ project_name_snake }}"
password: "{{ project_name_snake }}"
extensions:
- citext
- role: redis
- role: elastic
- role: rabbitmq