set nginx logging to use journald
All checks were successful
/ Ansible Lint (push) Successful in 1m53s
All checks were successful
/ Ansible Lint (push) Successful in 1m53s
This commit is contained in:
parent
328ec744cc
commit
a86b34cf34
4 changed files with 27 additions and 0 deletions
|
@ -100,6 +100,24 @@
|
|||
ansible.builtin.set_fact:
|
||||
nginx__config_files_to_exist: "{{ nginx__config_files_to_exist + [ 'redirect.conf' ] }}" # noqa: jinja[spacing]
|
||||
|
||||
- name: handle the case, where logging.conf should be deployed
|
||||
when: nginx__deploy_logging_conf
|
||||
block:
|
||||
- name: make sure logging.conf is deployed
|
||||
ansible.builtin.copy:
|
||||
force: true
|
||||
dest: /etc/nginx/conf.d/logging.conf
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
src: logging.conf
|
||||
become: true
|
||||
notify: Restart `nginx.service`
|
||||
|
||||
- name: add logging.conf to nginx__config_files_to_exist
|
||||
ansible.builtin.set_fact:
|
||||
nginx__config_files_to_exist: "{{ nginx__config_files_to_exist + [ 'logging.conf' ] }}" # noqa: jinja[spacing]
|
||||
|
||||
- name: make sure all given configuration files are deployed
|
||||
ansible.builtin.copy:
|
||||
content: "{{ item.content }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue