bitwarden

This commit is contained in:
jaydee 2024-11-14 12:13:40 +01:00
parent f6aca2734f
commit f1e5b7cae2
2 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
tasks: tasks:
- include_tasks: stop_containers.yaml - include_tasks: stop_containers.yaml
name: Stop Containers name: Stop Containers
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
- name: Pause for 60 seconds - name: Pause for 60 seconds
ansible.builtin.pause: ansible.builtin.pause:
seconds: 60 seconds: 60
@ -24,13 +24,13 @@
- semaphore.sectorq.eu - semaphore.sectorq.eu
- kestra.sectorq.eu - kestra.sectorq.eu
- auth.sectorq.eu - auth.sectorq.eu
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
- name: Get relevant configs - name: Get relevant configs
ansible.builtin.shell: 'egrep -l "# kestra.sectorq.eu|# auth.sectorq.eu|# ha.sectorq.eu|# pw.sectorq.eu|# semaphore.sectorq.eu|# sectorq.eu|# gitlab.sectorq.eu|# ha.sectorq.eu" /share/docker_data/nginx/data/nginx/proxy_host/*' ansible.builtin.shell: 'egrep -l "# kestra.sectorq.eu|# auth.sectorq.eu|# ha.sectorq.eu|# pw.sectorq.eu|# semaphore.sectorq.eu|# sectorq.eu|# gitlab.sectorq.eu|# ha.sectorq.eu" /share/docker_data/nginx/data/nginx/proxy_host/*'
ignore_errors: true ignore_errors: true
become: true become: true
register: result register: result
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
- debug: - debug:
msg: "{{ result.stdout_lines }}" msg: "{{ result.stdout_lines }}"
@ -43,7 +43,7 @@
become: true become: true
with_items: with_items:
- "{{ result.stdout_lines }}" - "{{ result.stdout_lines }}"
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
- include_tasks: reconfigure_heimdall.yaml - include_tasks: reconfigure_heimdall.yaml
name: Reconfigure heimdall name: Reconfigure heimdall
@ -54,7 +54,7 @@
- Roundcube - Roundcube
- Authentik - Authentik
- Kestra - Kestra
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
- name: Changing heimdall background - name: Changing heimdall background
ansible.builtin.shell: sqlite3 /share/docker_data/heimdall/config/www/app.sqlite "UPDATE setting_user SET uservalue = 'backgrounds/TRN2Ydr5dyVAkWvCq4xqR5bQ6iyv5XaKvM1r84sJ.jpg' WHERE user_id = (SELECT id FROM users WHERE username = 'jaydee')" ansible.builtin.shell: sqlite3 /share/docker_data/heimdall/config/www/app.sqlite "UPDATE setting_user SET uservalue = 'backgrounds/TRN2Ydr5dyVAkWvCq4xqR5bQ6iyv5XaKvM1r84sJ.jpg' WHERE user_id = (SELECT id FROM users WHERE username = 'jaydee')"
become: true become: true
@ -70,7 +70,7 @@
ignore_errors: true ignore_errors: true
become: true become: true
register: result register: result
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname == {{ selected_server }}
# - name: Get relevant configs # - name: Get relevant configs
# ansible.builtin.shell: 'docker restart gitlab' # ansible.builtin.shell: 'docker restart gitlab'
# ignore_errors: yes # ignore_errors: yes

View File

@ -4,7 +4,7 @@
become: true become: true
when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname in groups['raspberrypi5']
- name: Syncing all - name: Syncing all
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{kestra,authentik,mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"' ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/\{{{ selected_containers }}\} root@{{ selected_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
#ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"' #ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
#ansible.builtin.shell: 'ls -la' #ansible.builtin.shell: 'ls -la'
when: inventory_hostname in groups['nas'] when: inventory_hostname in groups['nas']