We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2da68f commit ab24604Copy full SHA for ab24604
handlers/main.yml
@@ -40,3 +40,6 @@
40
name: unitd
41
state: started
42
enabled: yes
43
+
44
+- name: "(Config: All OSs) Run Logrotate"
45
+ command: logrotate -f /etc/logrotate.d/nginx
tasks/conf/logrotate.yml
@@ -31,8 +31,4 @@
31
template:
32
src: "logrotate/nginx.j2"
33
dest: "/etc/logrotate.d/nginx"
34
- register: nginx_logrotate_result
35
-
36
-- name: "(Config: All OSs) Run Logrotate"
37
- command: logrotate -f /etc/logrotate.d/nginx
38
- changed_when: nginx_logrotate_result.changed
+ notify: "(Config: All OSs) Run Logrotate"
0 commit comments