diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-01-29 21:23:17 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-01-29 21:23:17 -0500 |
commit | ef47c944ae6899da183c80c801f0775c6c53b0f2 (patch) | |
tree | 7eff3a075bfd491fe2fb75c3366acc256691d636 | |
parent | 37f13e94b3de9440f8cf9567afb93f0aed09376f (diff) | |
download | playbooks-ef47c944ae6899da183c80c801f0775c6c53b0f2.tar.gz playbooks-ef47c944ae6899da183c80c801f0775c6c53b0f2.tar.bz2 playbooks-ef47c944ae6899da183c80c801f0775c6c53b0f2.zip |
roles/nginx/clean: Reset logs
-rw-r--r-- | roles/nginx/clean.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/nginx/clean.yml b/roles/nginx/clean.yml index 1493910..3b55c06 100644 --- a/roles/nginx/clean.yml +++ b/roles/nginx/clean.yml @@ -51,3 +51,12 @@ - /opt/nginx - /root/.cargo - /root/.cache + + - name: Resetting logs + copy: + content: "" + dest: "{{ item }}" + force: yes + with_items: + - /var/log/nginx/access.log + - /var/log/nginx/error.log |