Fix missing become for duplicity restore.
This commit is contained in:
parent
b362697114
commit
84d066e8d0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user