Loosen regexps for Bitwarden config.yml edits

This commit is contained in:
2026-09-10 23:14:43 -04:00
parent ec422727c6
commit 4f4c02571c
+6 -6
View File
@@ -184,18 +184,18 @@
selevel: "{{ bitwarden_se_level }}" selevel: "{{ bitwarden_se_level }}"
notify: rebuild_bitwarden notify: rebuild_bitwarden
- name: Disable bitwarden-nginx HTTP on 80 - name: Set bitwarden-nginx's HTTP port
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ bitwarden_data }}/config.yml" path: "{{ bitwarden_data }}/config.yml"
regexp: "^http_port: 80$" regexp: "^http_port: .*$"
replace: "http_port: {{ bitwarden_http_port }}" replace: "http_port: {{ bitwarden_http_port }}"
when: not bitwarden_standalone when: not bitwarden_standalone
notify: rebuild_bitwarden notify: rebuild_bitwarden
- name: Disable bitwarden-nginx HTTPS on 443 - name: Set bitwarden-nginx's HTTPS port
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ bitwarden_data }}/config.yml" path: "{{ bitwarden_data }}/config.yml"
regexp: "^https_port: 443$" regexp: "^https_port: .*$"
replace: "https_port: {{ bitwarden_https_port }}" replace: "https_port: {{ bitwarden_https_port }}"
when: not bitwarden_standalone when: not bitwarden_standalone
notify: rebuild_bitwarden notify: rebuild_bitwarden
@@ -203,7 +203,7 @@
- name: Disable Bitwarden managed Lets Encrypt - name: Disable Bitwarden managed Lets Encrypt
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ bitwarden_data }}/config.yml" path: "{{ bitwarden_data }}/config.yml"
regexp: "^ssl_managed_lets_encrypt: true$" regexp: "^ssl_managed_lets_encrypt: .*$"
replace: "ssl_managed_lets_encrypt: false" replace: "ssl_managed_lets_encrypt: false"
when: not bitwarden_standalone or not bitwarden_production when: not bitwarden_standalone or not bitwarden_production
notify: rebuild_bitwarden notify: rebuild_bitwarden
@@ -211,7 +211,7 @@
- name: Disable Bitwarden managed SSL - name: Disable Bitwarden managed SSL
ansible.builtin.replace: ansible.builtin.replace:
path: "{{ bitwarden_data }}/config.yml" path: "{{ bitwarden_data }}/config.yml"
regexp: "^ssl: true$" regexp: "^ssl: .*$"
replace: "ssl: false" replace: "ssl: false"
when: not bitwarden_standalone when: not bitwarden_standalone
notify: rebuild_bitwarden notify: rebuild_bitwarden