bitwarden

This commit is contained in:
jaydee 2024-11-15 15:39:07 +01:00
parent dab68012c7
commit 9fa3844e3e
2 changed files with 4 additions and 6 deletions

View File

@ -79,11 +79,8 @@
- mosquitto-mosquitto-1" - mosquitto-mosquitto-1"
when: '"mosquitto" in selected_containers' when: '"mosquitto" in selected_containers'
- name: Add elements to a list - name: Add elements to a list
set_fact:
docker_containers: "{{ docker_containers | default([]) + [item] }}"
loop:
- mosquitto-mosquitto-1"
when: '"ha" in selected_containers'
- debug: - debug:
msg: "{{ docker_containers }}" msg: "{{ docker_containers }}"
- name: Stop mailu containers - name: Stop mailu containers

View File

@ -2,7 +2,8 @@
- name: Changing permission - name: Changing permission
ansible.builtin.shell: 'chown -R root. /share/docker_data/' ansible.builtin.shell: 'chown -R root. /share/docker_data/'
become: true become: true
vars:
selected_containers: "{{ selected_containers|replace('homeassistant' ,'ha') }}"
- debug: - debug:
msg: rsync -avh --delete /share/docker_data/{{ '{' }}{{ selected_containers }}{{ '}' }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*" 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 when: selected_containers|split(",")|length > 1