---
# Email alias set-up

- name: Install the script generating the <pkg>-owner email alias
  copy: src={{ item.file }}
        dest={{ item.dest }}
        owner=root group=root mode=0755
  with_items:
  - { file: owner-email.py, dest: /usr/local/bin/owner-email.py }
  - { file: package-owner-aliases.sh, dest: /etc/cron.hourly/package-owner-aliases.sh }
  tags:
  - install

