bitwarden

This commit is contained in:
jaydee 2024-11-15 13:37:42 +01:00
parent b6fc945c19
commit 821560f53e

View File

@ -1,7 +1,6 @@
- name: Getting entry
ansible.builtin.shell: sqlite3 /share/docker_data/heimdall/config/www/app.sqlite "SELECT url FROM items WHERE title = '{{ item }}'"
become: true
when: inventory_hostname in groups['raspberrypi5']
register: url
- debug:
@ -9,4 +8,3 @@
- name: Changing entry
ansible.builtin.shell: sqlite3 /share/docker_data/heimdall/config/www/app.sqlite "UPDATE items SET url = '{{ url.stdout |regex_replace('[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}','192.168.77.238') }}' WHERE title = '{{ item }}'"
become: true
when: inventory_hostname in groups['raspberrypi5']