initial commit
This commit is contained in:
34
tasks/configure.yml
Normal file
34
tasks/configure.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- 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;'
|
Reference in New Issue
Block a user