mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 12:38:11 +00:00
bitwarden
This commit is contained in:
parent
dab68012c7
commit
9fa3844e3e
@ -79,11 +79,8 @@
|
||||
- mosquitto-mosquitto-1"
|
||||
when: '"mosquitto" in selected_containers'
|
||||
- name: Add elements to a list
|
||||
set_fact:
|
||||
docker_containers: "{{ docker_containers | default([]) + [item] }}"
|
||||
loop:
|
||||
- mosquitto-mosquitto-1"
|
||||
when: '"ha" in selected_containers'
|
||||
|
||||
|
||||
- debug:
|
||||
msg: "{{ docker_containers }}"
|
||||
- name: Stop mailu containers
|
||||
|
@ -2,7 +2,8 @@
|
||||
- name: Changing permission
|
||||
ansible.builtin.shell: 'chown -R root. /share/docker_data/'
|
||||
become: true
|
||||
|
||||
vars:
|
||||
selected_containers: "{{ selected_containers|replace('homeassistant' ,'ha') }}"
|
||||
- debug:
|
||||
msg: rsync -avh --delete /share/docker_data/{{ '{' }}{{ selected_containers }}{{ '}' }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"
|
||||
when: selected_containers|split(",")|length > 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user