From 1eec43b5880ae8acfb2d31e5cb77b668bf8126a0 Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 15 Nov 2024 13:20:11 +0100 Subject: [PATCH] bitwarden --- playbooks/reconfigure_nginx.yaml | 4 ++-- playbooks/sync_all.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/reconfigure_nginx.yaml b/playbooks/reconfigure_nginx.yaml index 2180573..1b68bae 100644 --- a/playbooks/reconfigure_nginx.yaml +++ b/playbooks/reconfigure_nginx.yaml @@ -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'] \ No newline at end of file diff --git a/playbooks/sync_all.yaml b/playbooks/sync_all.yaml index e56e1c7..7039923 100644 --- a/playbooks/sync_all.yaml +++ b/playbooks/sync_all.yaml @@ -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