Use BACKUP_WORKFLOW variable to determine what to do.
This commit is contained in:
parent
2476a29ce1
commit
2cf10f848d
@ -6,4 +6,4 @@ SCRIPTPATH=$(dirname $SCRIPT)
|
|||||||
|
|
||||||
cd $SCRIPTPATH
|
cd $SCRIPTPATH
|
||||||
USER=$(whoami)
|
USER=$(whoami)
|
||||||
sudo -E docker run --net=host --rm -e KEY -e DOC_KEY -e SECRETS_ARCHIVE_PASSPHRASE -e DUPLICITY_PASSPHRASE -e SCRIPT -v $SCRIPTPATH:/root/duplicity_playbooks -i ansible /root/duplicity_playbooks/script.sh
|
sudo -E docker run --net=host --rm -e KEY -e DOC_KEY -e SECRETS_ARCHIVE_PASSPHRASE -e DUPLICITY_PASSPHRASE -e BACKUP_WORKFLOW -v $SCRIPTPATH:/root/duplicity_playbooks -i ansible /root/duplicity_playbooks/script.sh
|
||||||
|
@ -230,7 +230,7 @@
|
|||||||
image: "duplicity:{{ tag }}"
|
image: "duplicity:{{ tag }}"
|
||||||
entrypoint:
|
entrypoint:
|
||||||
- "ansible-playbook"
|
- "ansible-playbook"
|
||||||
- "/root/duplicity_playbooks/gen_bootstrap.yml"
|
- "/root/duplicity_playbooks/{{ lookup('env','BACKUP_WORKFLOW') }}.yml"
|
||||||
output_logs: true
|
output_logs: true
|
||||||
detach: false
|
detach: false
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
@ -31,6 +31,7 @@ PLAYBOOK_REQUIRED_ENV_VARS:
|
|||||||
- DOC_KEY
|
- DOC_KEY
|
||||||
- SECRETS_ARCHIVE_PASSPHRASE
|
- SECRETS_ARCHIVE_PASSPHRASE
|
||||||
- DUPLICITY_PASSPHRASE
|
- DUPLICITY_PASSPHRASE
|
||||||
|
- BACKUP_WORKFLOW
|
||||||
|
|
||||||
DUPLICITY_ENVIRONMENT:
|
DUPLICITY_ENVIRONMENT:
|
||||||
SWIFT_AUTHURL: "{{ lookup('env','OS_AUTH_URL') }}"
|
SWIFT_AUTHURL: "{{ lookup('env','OS_AUTH_URL') }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user