diff --git a/roles/postgresql/tasks/setup.yml b/roles/postgresql/tasks/setup.yml index 8c0a67d..12016ac 100644 --- a/roles/postgresql/tasks/setup.yml +++ b/roles/postgresql/tasks/setup.yml @@ -65,5 +65,11 @@ vars: ansible_ssh_pipelining: true +- name: Remove log files if syslog is active + ansible.builtin.file: + path: /var/log/postgresql + state: absent + when: postgresql_log_destination == 'syslog' + - name: Include postgresqltuner tasks ansible.builtin.include_tasks: postgresqltuner.yml