Closed Aryamanz29 closed 2 years ago
Can we do something like this? :point_down: @pandafy
(requires Ansible >= 2.4)
https://docs.ansible.com/ansible/2.9/modules/replace_module.html#parameter-replace
- name: disable nginx server tokens
replace:
path: /etc/nginx/nginx.conf
regexp: '#(\s+)server_tokens off'
replace: 'server_tokens off'
backup: yes
Added task in
nginx.yml
, which sets theserver_tokens
tooff
Closes #353Successfully build : https://github.com/Aryamanz29/ansible-openwisp2/actions/runs/1935569843