Replaces many references to command: with ansible.builtin.command Signed-off-by: Ryan Lerch <rlerch@redhat.com>
15 lines
506 B
YAML
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
|