Start backup of container volumes.
This commit is contained in:
@@ -53,10 +53,13 @@
|
|||||||
label: "{{ item[1].name }}"
|
label: "{{ item[1].name }}"
|
||||||
|
|
||||||
- name: Create backup of volume and store to backup directory
|
- name: Create backup of volume and store to backup directory
|
||||||
ansible.builtin.debug:
|
shell: |
|
||||||
msg:
|
docker stop {{ item[0].name }}
|
||||||
- '{{ item[1] }}' # Volume name
|
docker start {{ item[0].name }}
|
||||||
- '{{ item[0].name }}' # Container name
|
#ansible.builtin.debug:
|
||||||
|
# msg:
|
||||||
|
# - '{{ item[1] }}' # Volume name
|
||||||
|
# - '{{ item[0].name }}' # Container name
|
||||||
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item[1] }}"
|
label: "{{ item[1] }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user