Uncommented code

This commit is contained in:
Kevin Veen-Birkenbach 2025-02-21 11:40:29 +01:00
parent 8afb2a3b84
commit ba49c2a840

View File

@ -6,26 +6,28 @@
notify: notify:
- docker compose restart - docker compose restart
- name: "Ensure 'overwriteprotocol' is set to 'https' in Nextcloud {{ nextcloud_config_file_path }}" #- name: Ensure 'overwriteprotocol' is set to 'https' in Nextcloud {{ nextcloud_config_file_path }}
block: # block:
- name: Check if 'overwriteprotocol' is already set # Deactivated because it was really heavy to fix.
lineinfile: # @todo implement
path: "{{ nextcloud_config_file_path }}" # - name: Check if 'overwriteprotocol' is already set
regexp: "^\s*'overwriteprotocol'\s*=>\s*'http'" # lineinfile:
line: "'overwriteprotocol' => 'https'," # path: "{{ nextcloud_config_file_path }}"
backrefs: yes # regexp: "^\s*overwriteprotocol\s*=>\s*http"
state: present # line: "overwriteprotocol => 'https',"
notify: # backrefs: yes
- docker compose restart # state: present
# notify:
- name: Add 'overwriteprotocol' => 'https' if not present # - docker compose restart
lineinfile: #
path: "{{ nextcloud_config_file_path }}" # - name: Add 'overwriteprotocol' => 'https' if not present
regexp: "^\s*\);$" # lineinfile:
line: "'overwriteprotocol' => 'https'," # path: "{{ nextcloud_config_file_path }}"
insertafter: "^\s*\);$" # regexp: "^\s*\);$"
state: present # line: "overwriteprotocol => 'https',"
notify: # insertafter: "^\s*\);$"
- docker compose restart # state: present
notify: # notify:
- docker compose restart # - docker compose restart
# notify:
# - docker compose restart