nginx/tasks/configure.yml
2024-12-17 17:20:50 +01:00

35 lines
630 B
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- 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;'