mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
dab68012c7
commit
9fa3844e3e
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user