diff --git a/roles/backup_client/handlers/main.yml b/roles/backup_client/handlers/main.yml index c57817491461e335815c09258d5cabb75ff5de8f..0b13694ad16178a674ac4f1c911308a109854571 100644 --- a/roles/backup_client/handlers/main.yml +++ b/roles/backup_client/handlers/main.yml @@ -24,6 +24,10 @@ # after interrupted runs. command: "gpg --no-tty --homedir /etc/duply/main/gnupg --import /etc/duply/main/private_keys.asc" -- name: Import public keys +- name: Import public keys # noqa no-changed-when + # [no-changed-when] Commands should not change things if nothing needs doing + # This task is invoked only if user is very specific about requiring to + # run the handlers manually as a way to bring the system to consistency + # after interrupted runs. command: "gpg --no-tty --homedir /etc/duply/main/gnupg --import /etc/duply/main/public_keys.asc" when: backup_additional_encryption_keys | length > 0