Anpassungen für Alias-Domains

This commit is contained in:
phil 2021-10-14 16:09:47 +02:00
parent 118e5bc42f
commit c611852b77
9 changed files with 28 additions and 15 deletions

View file

@ -11,10 +11,11 @@
lineinfile:
path: /etc/dehydrated/domains.txt
insertafter: "^# nextcloud"
line: "{{ instance.alias }}"
line: "{{ item }}"
when: instance.alias is defined
register: dehydrated
delegate_to: "{{ gateway_host }}"
loop: "{{ instance.alias }}"
- name: "gateway: {{ instance.domain }}: Zertifikat erstellen"
command: dehydrated --cron -g

View file

@ -2,13 +2,18 @@
- import_tasks: version.yml
tags: version
- import_tasks: gateway.yml
tags: gateway
- import_tasks: database.yml
tags: database
- import_tasks: php.yml
tags: php
- import_tasks: apache.yml
tags: apache
- name: "Nextcloud installieren"
include_tasks: nextcloud.yml
when: nc_is_installed.stat.exists == False
tags: nextcloud
- import_tasks: nextcloud_configuration.yml
tags: configuration

View file

@ -1,5 +1,4 @@
---
#todo: Auch auf instances.alias anwenden
- name: "configuration: {{ instance.domain }}: trusted domains einrichten"
command: 'php {{ nextcloud_install_path }}/occ config:system:set trusted_domains {{ item.0 }} --value "{{ item.1 }}"'
become: true

View file

@ -6,7 +6,7 @@
- name: "packages: Datenbank-Pakete installieren"
apt:
pkg:
- python-pymysql
- python3-pymysql
update_cache: yes
cache_valid_time: 3600
delegate_to: "{{ database_host }}"

View file

@ -20,4 +20,4 @@
path: "{{ redis_config_file }}"
regexp: '^databases 16$'
line: 'databases {{ instances_number }}'
when: instances_number <= 16
when: instances_number|int <= 16