|
|
|
@ -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"
|
|
|
|
|