Enable logs on web Uberspaces

This commit is contained in:
2020-06-27 15:56:54 +02:00
parent c3200c91db
commit 924ea1fd34
+18
View File
@@ -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"