Merge remote-tracking branch 'notandy/master'
This commit is contained in:
commit
cd5d0b8232
3 changed files with 18 additions and 16 deletions
|
|
@ -5,7 +5,7 @@ types {
|
||||||
text/xml xml;
|
text/xml xml;
|
||||||
image/gif gif;
|
image/gif gif;
|
||||||
image/jpeg jpeg jpg;
|
image/jpeg jpeg jpg;
|
||||||
application/javascript js;
|
application/javascript js mjs;
|
||||||
application/atom+xml atom;
|
application/atom+xml atom;
|
||||||
application/rss+xml rss;
|
application/rss+xml rss;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,6 @@
|
||||||
inventory_certs: "{{ certificates.certs|d({}) | dict2items | selectattr ('key', 'regex', '^nginx_') | items2dict }}"
|
inventory_certs: "{{ certificates.certs|d({}) | dict2items | selectattr ('key', 'regex', '^nginx_') | items2dict }}"
|
||||||
selfsigned_cert: "{ '{{ inventory_hostname }}': { 'backend': 'selfsigned' }}"
|
selfsigned_cert: "{ '{{ inventory_hostname }}': { 'backend': 'selfsigned' }}"
|
||||||
|
|
||||||
- name: generate certificates for vhosts
|
|
||||||
include_role:
|
|
||||||
name: certificates
|
|
||||||
vars:
|
|
||||||
certificates:
|
|
||||||
certs: "{{ {}|combine( (selfsigned_cert|from_yaml if nginx.snakeoil_default else {}), nginx_certs, inventory_certs, recursive=True) }}"
|
|
||||||
|
|
||||||
- name: debug nginx dict
|
|
||||||
debug:
|
|
||||||
verbosity: 1
|
|
||||||
var: nginx
|
|
||||||
|
|
||||||
- name: install nginx
|
- name: install nginx
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
|
|
@ -31,6 +19,18 @@
|
||||||
- delete nginx index.nginx-debian.html
|
- delete nginx index.nginx-debian.html
|
||||||
- restart nginx
|
- restart nginx
|
||||||
|
|
||||||
|
- name: generate certificates for vhosts
|
||||||
|
include_role:
|
||||||
|
name: certificates
|
||||||
|
vars:
|
||||||
|
certificates:
|
||||||
|
certs: "{{ {}|combine( (selfsigned_cert|from_yaml if nginx.snakeoil_default else {}), nginx_certs, inventory_certs, recursive=True) }}"
|
||||||
|
|
||||||
|
- name: debug nginx dict
|
||||||
|
debug:
|
||||||
|
verbosity: 1
|
||||||
|
var: nginx
|
||||||
|
|
||||||
- name: copy configs
|
- name: copy configs
|
||||||
copy:
|
copy:
|
||||||
src: config/
|
src: config/
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,15 @@
|
||||||
- php-gmp
|
- php-gmp
|
||||||
- php-zip
|
- php-zip
|
||||||
- php-curl
|
- php-curl
|
||||||
|
- php-bz2
|
||||||
|
- php-apcu
|
||||||
|
- php-bcmath
|
||||||
|
- php-pear
|
||||||
|
- php-redis
|
||||||
# database pdos
|
# database pdos
|
||||||
- php-pdo-sqlite
|
- php-pdo-sqlite
|
||||||
- php-pdo-pgsql
|
- php-pdo-pgsql
|
||||||
- php-pdo-mysql
|
- php-pdo-mysql
|
||||||
- php-apcu
|
|
||||||
- php-bcmath
|
|
||||||
- php-pear
|
|
||||||
notify:
|
notify:
|
||||||
- restart nginx
|
- restart nginx
|
||||||
- restart php-fpm
|
- restart php-fpm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue