2023-05-21 23:01:31 +02:00
|
|
|
---
|
|
|
|
- name: "Hiddenservice | Richte Hiddenservice ein | {{ item.name }}"
|
|
|
|
ansible.builtin.import_role:
|
|
|
|
name: configure-hiddenservice
|
|
|
|
delegate_to: "{{ onion_host }}"
|
|
|
|
|
|
|
|
- name: "Hiddenservice | Kopiere Apache-Anpassungen | {{ item.name }}"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: templates/apache2/custom.conf.j2
|
|
|
|
dest: "/etc/apache2/conf-available/{{ item.name }}.conf"
|
|
|
|
mode: "0644"
|
|
|
|
notify: reload apache
|
2023-10-22 21:41:16 +02:00
|
|
|
|
|
|
|
# Das erste Argument gibt den Platz im Array an, beginnend mit 0.
|
|
|
|
- name: "Hiddenservice | Richte trusted domains ein | {{ item.name }}"
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: 'php occ config:system:set trusted_domains {{ item.occ_config.system.trusted_domains | length }} --value "{{ hiddenservice_address.stdout }}" --quiet'
|
|
|
|
chdir: "{{ nextcloud_install_path }}"
|
|
|
|
become: true
|
|
|
|
become_user: "{{ item.user }}"
|
|
|
|
changed_when: true
|