initial commit

This commit is contained in:
Ludovic Cartier
2024-12-17 17:20:50 +01:00
parent a24d032a03
commit 4c65e9c8b4
17 changed files with 315 additions and 2 deletions

34
tasks/configure.yml Normal file
View 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;'