copr-keygen: idempotent backup setup
This commit is contained in:
parent
3f0f67f440
commit
810326a441
1 changed files with 2 additions and 0 deletions
|
@ -3,9 +3,11 @@
|
|||
|
||||
- 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue