Install python-swiftclient requirement.

This commit is contained in:
yohan 2023-10-22 00:18:46 +02:00
parent a3a50c7b58
commit 0f9dabeacd

View File

@ -146,6 +146,12 @@
src: "{{ WORKDIR }}/secrets.tar.gz.enc" src: "{{ WORKDIR }}/secrets.tar.gz.enc"
dest: "{{ WORKDIR }}/backup/secrets.tar.gz.enc" dest: "{{ WORKDIR }}/backup/secrets.tar.gz.enc"
# python-swiftclient is a requirement of duplicity
- name: Install python-swiftclient
ansible.builtin.package:
name: python-swiftclient
state: present
- name: Backup with duplicity - name: Backup with duplicity
ansible.builtin.command: "duplicity --num-retries 3 --full-if-older-than 1M --progress --archive-dir {{ ARCHIVE_DIR }} --name bootstrap --allow-source-mismatch '{{ WORKDIR }}/backup' swift://bootstrap" ansible.builtin.command: "duplicity --num-retries 3 --full-if-older-than 1M --progress --archive-dir {{ ARCHIVE_DIR }} --name bootstrap --allow-source-mismatch '{{ WORKDIR }}/backup' swift://bootstrap"
environment: environment: