Files @ 66da094b2fca
Branch filter:

Location: majic-ansible-roles/roles/backup_client/handlers/main.yml - annotation

branko
MAR-96: Moved setting of facts for gpg/gpg2 binary detection in backup_client role into separate yml file. Assigned the handlers tag to it to make sure the facts are available when only handlers get executed.
---

- name: Clean-up GnuPG keyring for import of new keys
  shell: rm -f /etc/duply/main/gnupg/*

- name: Import private keys
  command: "{{ gnupg_binary }} --homedir /etc/duply/main/gnupg --import /etc/duply/main/private_keys.asc"

- name: Import public keys
  command: "{{ gnupg_binary }} --homedir /etc/duply/main/gnupg --import /etc/duply/main/public_keys.asc"
  when: backup_additional_encryption_keys