35 lines
630 B
YAML
35 lines
630 B
YAML
|
---
|
|||
|
- name: 'nginx | push configuration'
|
|||
|
copy:
|
|||
|
src: '{{ item }}'
|
|||
|
dest: /etc/nginx/conf.d/
|
|||
|
owner: root
|
|||
|
mode: 600
|
|||
|
with_fileglob:
|
|||
|
- conf.d/*
|
|||
|
notify:
|
|||
|
- 'nginx restart'
|
|||
|
tags:
|
|||
|
- nginx
|
|||
|
- nginx_configure
|
|||
|
|
|||
|
- name: 'nginx | push custom configuration'
|
|||
|
copy:
|
|||
|
src: '{{ item }}'
|
|||
|
dest: /etc/nginx/conf.d/custom/
|
|||
|
owner: root
|
|||
|
mode: 600
|
|||
|
with_fileglob:
|
|||
|
- conf.d/custom/*
|
|||
|
notify:
|
|||
|
- 'nginx restart'
|
|||
|
tags:
|
|||
|
- nginx
|
|||
|
- nginx_configure
|
|||
|
|
|||
|
#- name: 'nginx | disable general gzip'
|
|||
|
# replace:
|
|||
|
# path: /etc/nginx/nginx.conf
|
|||
|
# regexp: 'gzip on;'
|
|||
|
# replace: 'gzip off;'
|