Skip to content

Commit

Permalink
Merge pull request #13 from Oefenweb/consistency-changes
Browse files Browse the repository at this point in the history
Consistency changes
  • Loading branch information
tersmitten authored Dec 12, 2016
2 parents 93c26fb + 1d3b0bb commit 8cb7811
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/gpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
- duply-backup-gpg

- name: import public keys
shell: "echo '{{ lookup('file', item) }}' | gpg --import && touch {{ duply_backup_lock_directory }}/{{ item | basename }}"
shell: >
echo '{{ lookup('file', item) }}' | gpg --import && touch {{ duply_backup_lock_directory }}/{{ item | basename }}
args:
creates: "{{ duply_backup_lock_directory }}/{{ item | basename }}"
with_items: "{{ duply_backup_gpg_pub_keys }}"
Expand All @@ -24,7 +25,8 @@
- duply-backup-gpg-pub-import

- name: import ownertrusts
shell: "echo '{{ lookup('file', item) }}' | gpg --import-ownertrust && touch {{ duply_backup_lock_directory }}/{{ item | basename }}"
shell: >
echo '{{ lookup('file', item) }}' | gpg --import-ownertrust && touch {{ duply_backup_lock_directory }}/{{ item | basename }}
args:
creates: "{{ duply_backup_lock_directory }}/{{ item | basename }}"
notify: update trustdb
Expand All @@ -36,7 +38,8 @@
- duply-backup-gpg-ownertrust-import

- name: import private keys
shell: "echo '{{ lookup('file', item) }}' | gpg --allow-secret-key-import --import && touch {{ duply_backup_lock_directory }}/{{ item | basename }}"
shell: >
echo '{{ lookup('file', item) }}' | gpg --allow-secret-key-import --import && touch {{ duply_backup_lock_directory }}/{{ item | basename }}
args:
creates: "{{ duply_backup_lock_directory }}/{{ item | basename }}"
with_items: "{{ duply_backup_gpg_sec_keys }}"
Expand Down

0 comments on commit 8cb7811

Please sign in to comment.