bitwarden

This commit is contained in:
jaydee 2024-11-15 13:20:11 +01:00
parent f7a80fed8e
commit 1eec43b588
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
---
- debug:
msg: "{{ item }}"
- name: Changing entry in nginx database
ansible.builtin.shell: sqlite3 /share/docker_data/nginx/data/database.sqlite "UPDATE proxy_host SET forward_host = '192.168.77.238' WHERE domain_names = '[\"{{ item }}\"]'"
ansible.builtin.shell: sqlite3 /share/docker_data/nginx/data/database.sqlite "UPDATE proxy_host SET forward_host = '{{ destination_server}}' WHERE domain_names = '[\"{{ item }}\"]'"
become: true
when: inventory_hostname in groups['raspberrypi5']

View File

@ -40,6 +40,7 @@
- kestra.sectorq.eu
- auth.sectorq.eu
when: inventory_hostname == destination_server
- 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/*'
ignore_errors: true