ansible/playbooks/reconfigure_nginx.yaml
2023-12-06 15:19:27 +01:00

6 lines
316 B
YAML

- 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 }}\"]'"
become: true
when: inventory_hostname in groups['raspberrypi5']