- name: Ensure release script directory file: path: '/opt/afs-release' state: directory owner: root group: root mode: 0755 - name: Ensure log directory file: path: '/var/log/afs-release/' state: directory owner: root group: root mode: 0644 - name: Copy script copy: src: release-volumes.py dest: '/opt/afs-release' mode: '0755' - name: Install script dependency packages package: name: - python3-statsd state: present - name: Install release cron job cron: name: 'Release afs volumes' state: present job: '/opt/afs-release/release-volumes.py -d >> /var/log/afs-release/afs-release.log 2>&1' hour: '*' minute: '*/5' - name: Install logrotate rules include_role: name: logrotate vars: logrotate_file_name: '/var/log/afs-release/afs-release.log'