- name: ensure /backup dir
  file: path=/backup state=directory

- name: copy pubkey for backup encryption
  copy: src="{{ private }}/files/copr/keygen/backup_key.asc" dest="/root/backup_key.asc"
  register: pub_key_installed

- name: import pubkey for backup encryption
  shell: gpg2 --import /root/backup_key.asc creates=/root/backupkeyimported
  when: pub_key_installed.changed

- name: copy backup script
  copy: src="backup_keyring.sh" dest="/etc/cron.hourly/backup_keyring.sh" owner=root group=root mode=755
