ansible/playbooks/manual/noggin-deployment/create-full-backup.yml
Ryan Lerch 462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

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

15 lines
506 B
YAML

---
- name: Backup IPA data for testing
hosts: ipa_stg
# vars_files:
# - /srv/web/infra/ansible/vars/global.yml
# - "/srv/private/ansible/vars.yml"
# - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Create backup of FreeIPA server data
ansible.builtin.command: ipa-backup
- name: Make the latest backup available under a fixed name
shell:
cmd: ln -snf $(ls -1t ipa-full* | head -n 1) ipa-full-latest
chdir: /var/lib/ipa/backup