diff options
author | Troy Dawson <tdawson@redhat.com> | 2015-08-27 10:27:46 -0500 |
---|---|---|
committer | Troy Dawson <tdawson@redhat.com> | 2015-08-27 15:19:45 -0500 |
commit | f0d03d257f2186c91e99c06e34be737468ea6ad6 (patch) | |
tree | be5ad866e94abe66ed76aad2f98a31ae8229f645 /roles/nickhammond.logrotate/tests | |
parent | 5c7e1366ad8ae67ef23117d296a65a6ee81ccd29 (diff) | |
download | openshift-f0d03d257f2186c91e99c06e34be737468ea6ad6.tar.gz openshift-f0d03d257f2186c91e99c06e34be737468ea6ad6.tar.bz2 openshift-f0d03d257f2186c91e99c06e34be737468ea6ad6.tar.xz openshift-f0d03d257f2186c91e99c06e34be737468ea6ad6.zip |
Add a role that allows logrotate config editing.
This role gets called for each type of machine, but
if logrotate_scripts is not set, nothing happens.
Diffstat (limited to 'roles/nickhammond.logrotate/tests')
-rw-r--r-- | roles/nickhammond.logrotate/tests/inventory | 1 | ||||
-rw-r--r-- | roles/nickhammond.logrotate/tests/test.yml | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/roles/nickhammond.logrotate/tests/inventory b/roles/nickhammond.logrotate/tests/inventory new file mode 100644 index 000000000..2fbb50c4a --- /dev/null +++ b/roles/nickhammond.logrotate/tests/inventory @@ -0,0 +1 @@ +localhost 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" |