summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/tests/test.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nickhammond.logrotate/tests/test.yml')
-rw-r--r--roles/nickhammond.logrotate/tests/test.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/nickhammond.logrotate/tests/test.yml b/roles/nickhammond.logrotate/tests/test.yml
new file mode 100644
index 000000000..e806b0a02
--- /dev/null
+++ b/roles/nickhammond.logrotate/tests/test.yml
@@ -0,0 +1,18 @@
+---
+- hosts: all
+ sudo: True
+ roles:
+ - ansible-logrotate
+ - role: ansible-logrotate
+ logrotate_scripts:
+ - name: nginx-options
+ path: /var/log/nginx/options.log
+ options:
+ - daily
+
+ - role: ansible-logrotate
+ logrotate_scripts:
+ - name: nginx-scripts
+ path: /var/log/nginx/scripts.log
+ scripts:
+ postrotate: "echo test"