Create roles for symfony app and ssl certificate
This commit is contained in:
44
ansible/roles/symfony-app/defaults/main.yml
Normal file
44
ansible/roles/symfony-app/defaults/main.yml
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
app_name: ''
|
||||
|
||||
|
||||
# ПОЛЬЗОАВТЕЛЬ
|
||||
|
||||
app_user: '{{ app_name }}'
|
||||
app_group: '{{ app_user }}'
|
||||
app_user_ssh_keys: []
|
||||
|
||||
|
||||
# ОКРУЖЕНИЕ
|
||||
|
||||
# Переменные окружения приложения.
|
||||
# Необходимо указывать в виде пар ключ-значение,
|
||||
# где ключ - имя переменной (обычно в верхнем регистре).
|
||||
app_envs: {}
|
||||
|
||||
|
||||
# ВЕБ-СЕРВЕР
|
||||
|
||||
app_directory: '/var/www/{{ app_name }}'
|
||||
app_domains: ['{{ app_name }}.loc']
|
||||
app_web_root: '/var/www/{{ app_name }}/current/web'
|
||||
app_web_listen: 'unix:/var/run/php-fpm-{{ app_name }}.sock'
|
||||
|
||||
|
||||
# СЕРТИФИКАТ
|
||||
|
||||
app_cert: no
|
||||
app_cert_type: 'self-signed'
|
||||
app_cert_email: ''
|
||||
app_cert_directory: '/opt/ssl-certificates/{{ app_name }}'
|
||||
app_cert_certificate: '/opt/ssl-certificates/{{ app_name }}/ssl.crt'
|
||||
app_cert_key: '/opt/ssl-certificates/{{ app_name }}/ssl.key'
|
||||
app_dhparam_file: '/opt/ssl-certificates/{{ app_name }}/dhparam.pem'
|
||||
|
||||
|
||||
# PHP-FPM
|
||||
|
||||
app_php_version: '{{ php_version | default("7.0") }}'
|
||||
app_fpool_name: '{{ app_name }}'
|
||||
app_fpool_listen: '/var/run/php-fpm-{{ app_name }}.sock'
|
||||
app_fpool_slowlog: '/var/www/{{ app_name }}/shared/logs/'
|
Reference in New Issue
Block a user