Fix missing become for duplicity restore.

This commit is contained in:
yohan 2024-04-28 16:36:51 +02:00
parent b362697114
commit 84d066e8d0
6 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,7 @@
# this variable will override that.
PYTHONPATH: ".local/lib/python3.9/site-packages"
register: duplicity_result
become: true
with_items:
- scuttle_code
- scuttle_php5-fpm_conf

View File

@ -59,6 +59,7 @@
# this variable will override that.
PYTHONPATH: ".local/lib/python3.9/site-packages"
register: duplicity_result
become: true
with_items:
- etc_grafana
- var_lib_grafana

View File

@ -41,6 +41,7 @@
# this variable will override that.
PYTHONPATH: ".local/lib/python3.9/site-packages"
register: duplicity_result
become: true
with_items:
- nextcloud
failed_when: duplicity_result is failed and (duplicity_result.rc is not defined or duplicity_result.rc != 11)

View File

@ -67,6 +67,7 @@
# this variable will override that.
PYTHONPATH: ".local/lib/python3.9/site-packages"
register: duplicity_result
become: true
with_items:
- registry_data
- registry_auth

View File

@ -45,6 +45,7 @@
- gogs_data
failed_when: duplicity_result is failed and (duplicity_result.rc is not defined or duplicity_result.rc != 11)
changed_when: duplicity_result.rc is defined and duplicity_result.rc == 0
become: true
when: not gogs_installed_flag.stat.exists
- name: Create gogs container

View File

@ -76,6 +76,7 @@
# this variable will override that.
PYTHONPATH: ".local/lib/python3.9/site-packages"
register: duplicity_result
become: true
with_items:
- mysql-server_dumps
failed_when: duplicity_result is failed and (duplicity_result.rc is not defined or duplicity_result.rc != 11)