mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 02:46:20 +08:00
Replaces references to shell: with ansible.builtin.shell Signed-off-by: Ryan Lerch <rlerch@redhat.com>
15 lines
582 B
YAML
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
|