nextcloud: Fix typos, re-add hiddenservice-task
This commit is contained in:
parent
dd649c8826
commit
eb4d07ae78
5 changed files with 34 additions and 13 deletions
|
@ -25,10 +25,10 @@
|
|||
dest: "/tmp/{{ instances.name }}_config.json"
|
||||
mode: "0644"
|
||||
|
||||
- name: "Configuration | Importiere Konfuration | {{ instances.name }}"
|
||||
ansible.builtin.command:
|
||||
cmd: "php occ config:import /tmp/{{ instances.name }}_config.json --quiet"
|
||||
chdir: "{{ nextcloud_install_path }}"
|
||||
become: true
|
||||
become_user: "{{ instances.user }}"
|
||||
changed_when: true
|
||||
# - name: "Configuration | Importiere Konfiguration | {{ instances.name }}"
|
||||
# ansible.builtin.command:
|
||||
# cmd: "php occ config:import /tmp/{{ instances.name }}_config.json --quiet"
|
||||
# chdir: "{{ nextcloud_install_path }}"
|
||||
# become: true
|
||||
# become_user: "{{ instances.user }}"
|
||||
# changed_when: true
|
||||
|
|
|
@ -10,3 +10,12 @@
|
|||
dest: "/etc/apache2/conf-available/{{ item.name }}.conf"
|
||||
mode: "0644"
|
||||
notify: reload apache
|
||||
|
||||
# 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
|
||||
|
|
|
@ -13,9 +13,11 @@
|
|||
|
||||
- name: Setup Gateway
|
||||
ansible.builtin.include_tasks: gateway.yml
|
||||
tags: always
|
||||
args:
|
||||
apply:
|
||||
delegate_to: "{{ gateway_host }}"
|
||||
tags: gateway
|
||||
loop: "{{ nextcloud_instances }}"
|
||||
|
||||
- name: Run database tasks
|
||||
|
@ -29,8 +31,11 @@
|
|||
|
||||
- name: Run user tasks
|
||||
ansible.builtin.include_tasks: user.yml
|
||||
tags: user
|
||||
tags: always
|
||||
loop: "{{ nextcloud_instances }}"
|
||||
args:
|
||||
apply:
|
||||
tags: user
|
||||
|
||||
- name: Run php tasks
|
||||
ansible.builtin.include_tasks: php.yml
|
||||
|
@ -42,12 +47,12 @@
|
|||
|
||||
- name: Run Hiddenservice tasks
|
||||
ansible.builtin.include_tasks: hiddenservice.yml
|
||||
when: item.hiddenservice is defined
|
||||
loop: "{{ nextcloud_instances }}"
|
||||
tags: always
|
||||
loop: "{{ nextcloud_instances }}"
|
||||
args:
|
||||
apply:
|
||||
tags: hiddenservice
|
||||
when: item.hiddenservice is defined
|
||||
|
||||
- name: Run Webserver tasks
|
||||
ansible.builtin.import_tasks: apache.yml
|
||||
|
@ -59,7 +64,6 @@
|
|||
|
||||
- name: Configure Nextcloud
|
||||
ansible.builtin.include_tasks: configuration.yml
|
||||
tags: always
|
||||
args:
|
||||
apply:
|
||||
tags: configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue