forked from evolix/ansible-roles
nginx: simpler regex for settings
This commit is contained in:
parent
8f86584605
commit
2768b3146f
|
@ -20,7 +20,7 @@
|
|||
- name: customize worker_connections
|
||||
ansible.builtin.lineinfile:
|
||||
dest: /etc/nginx/nginx.conf
|
||||
regexp: '^(\s*)(worker_connections)\s+.+;'
|
||||
regexp: '^(\s*)worker_connections\s+.+;'
|
||||
line: '\1worker_connections 1024;'
|
||||
insertafter: 'events \{'
|
||||
backrefs: yes
|
||||
|
@ -31,7 +31,7 @@
|
|||
- name: use epoll
|
||||
ansible.builtin.lineinfile:
|
||||
dest: /etc/nginx/nginx.conf
|
||||
regexp: '^(\s*)(use)\s+.+;'
|
||||
regexp: '^(\s*)use\s+.+;'
|
||||
line: '\1use epoll;'
|
||||
insertafter: 'events \{'
|
||||
backrefs: yes
|
||||
|
|
Loading…
Reference in a new issue