Sha256: 3d9867144783a9354b8df9720f8297e8f20db47faf749c6b8a2ba28dd92d2ab8

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

---
- hosts: all
  become: True
  vars:
    logrotate_scripts:
      - name: nginx-options
        path: /var/log/nginx/options.log
        options:
          - daily

      - name: nginx-scripts
        path: /var/log/nginx/scripts.log
        scripts:
          postrotate: "echo test"

      - name: multiple-paths
        paths:
          - /var/log/nginx/options.log
          - /var/log/nginx/scripts.log

  roles:
    - ansible-logrotate

  tasks:
    - name: Verify logrotate config check passes
      shell: logrotate -d "{{ logrotate_conf_dir }}{{ item.name }}"
      with_items: "{{ logrotate_scripts }}"
      register: logrotate_tests
      failed_when: "'error' in logrotate_tests.stderr"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taperole-2.1.1 vendor/nickhammond.logrotate/tests/test.yml
taperole-2.1.0 vendor/nickhammond.logrotate/tests/test.yml