mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
CHANGE: add exclude tags also to stdin command
This commit is contained in:
parent
977ed115fb
commit
1ff31d56d7
1 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,12 @@ else
|
||||||
MODE_TAG="--tag cron"
|
MODE_TAG="--tag cron"
|
||||||
fi
|
fi
|
||||||
{% if item.stdin is defined and item.stdin == true %}
|
{% if item.stdin is defined and item.stdin == true %}
|
||||||
{{ item.stdin_cmd }} | {{ restic_install_path }}/restic backup --stdin $MODE_TAG {{ tags(item.tags) }} {{ stdin_filename(item.stdin_filename) }} $@
|
{{ item.stdin_cmd }} | {{ restic_install_path }}/restic backup \
|
||||||
|
--stdin $MODE_TAG \
|
||||||
|
{{ tags(item.tags) }} \
|
||||||
|
{{ stdin_filename(item.stdin_filename) }} \
|
||||||
|
{% if item.exclude is defined %}{{ exclude(item.exclude) }}{% endif %} \
|
||||||
|
$@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ restic_install_path }}/restic backup $BACKUP_SOURCE $MODE_TAG \
|
{{ restic_install_path }}/restic backup $BACKUP_SOURCE $MODE_TAG \
|
||||||
{{ tags(item.tags) }} \
|
{{ tags(item.tags) }} \
|
||||||
|
|
Loading…
Reference in a new issue