nginx: keep indentation

This commit is contained in:
Jérémy Lecour 2023-10-18 22:12:35 +02:00 committed by Jérémy Lecour
parent 679e170dce
commit ab30ea4cde
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -20,18 +20,20 @@
- name: customize worker_connections
ansible.builtin.lineinfile:
dest: /etc/nginx/nginx.conf
regexp: '^(\s*worker_connections)\s+.+;'
line: ' worker_connections 1024;'
regexp: '^(\s*)(worker_connections)\s+.+;'
line: '\1worker_connections 1024;'
insertafter: 'events \{'
backrefs: yes
tags:
- nginx
- name: use epoll
ansible.builtin.lineinfile:
dest: /etc/nginx/nginx.conf
regexp: '^(\s*use)\s+.+;'
line: ' use epoll;'
regexp: '^(\s*)(use)\s+.+;'
line: '\1use epoll;'
insertafter: 'events \{'
backrefs: yes
tags:
- nginx