mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
- name: "generate {{ domains | get_domain(application_id) }}.conf"
|
|
template:
|
|
src: "nginx.conf.j2"
|
|
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
|
|
notify: restart openresty
|
|
|
|
- name: Update Collabora systemplate to include new fonts
|
|
command: "{{ COLLABORA_DOCKER_CONF_EXEC }} update-system-template"
|
|
register: collabora_fonts
|
|
changed_when: >
|
|
(not ASYNC_ENABLED | bool )
|
|
and
|
|
('updated' in (collabora_fonts.stdout | default('')))
|
|
async: "{{ ASYNC_TIME if (ASYNC_ENABLED | default(false) | bool) else omit }}"
|
|
poll: "{{ ASYNC_POLL if (ASYNC_ENABLED | default(false) | bool) else omit }}"
|
|
when: MODE_UPDATE | bool
|
|
|
|
- name: Allow Nextcloud host IP for Collabora preview conversion
|
|
command: "{{ COLLABORA_DOCKER_CONF_EXEC }} set net.post_allow.host {{ networks.internet.ip4 }}"
|
|
register: collabora_preview
|
|
changed_when: >
|
|
(not ASYNC_ENABLED | bool )
|
|
and
|
|
('already present' not in (collabora_preview.stdout | default('')))
|
|
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
|
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}" |