Files
fedora-infra_ansible/roles/copr/keygen/tasks/setup_backup.yml
Ryan Lerch 3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00

15 lines
582 B
YAML

---
- name: Ensure /backup dir
ansible.builtin.file: path=/backup state=directory
- name: Copy pubkey for backup encryption
ansible.builtin.copy: src="{{ private }}/files/copr/keygen/backup_key.asc" dest="/root/backup_key.asc"
register: pub_key_installed
- name: Import pubkey for backup encryption
ansible.builtin.shell: gpg2 --import /root/backup_key.asc creates=/root/backupkeyimported
when: pub_key_installed.changed
- name: Copy backup script
ansible.builtin.copy: src="backup_keyring.sh" dest="/etc/cron.hourly/backup_keyring.sh" owner=root group=root mode=755