Enable logs on web Uberspaces

master
Lukas Bestle 4 years ago
parent c3200c91db
commit 924ea1fd34
Signed by: lukas
GPG Key ID: 692037D104550FC9

@ -100,3 +100,21 @@
hour: "2"
minute: "3"
job: "{{ ansible_env.HOME }}/bin/qdated-generate"
- name: Check if the access log is enabled
command: uberspace web log access status
register: uberspace_log_access_status_result
changed_when: no
- name: Enable access log
command: uberspace web log access enable
when: "'is enabled' not in uberspace_log_access_status_result.stdout"
- name: Check if the PHP error log is enabled
command: uberspace web log php_error status
register: uberspace_log_php_error_status_result
changed_when: no
- name: Enable PHP error log
command: uberspace web log php_error enable
when: "'is enabled' not in uberspace_log_php_error_status_result.stdout"

Loading…
Cancel
Save