Anpassungen für Alias-Domains
This commit is contained in:
parent
118e5bc42f
commit
c611852b77
9 changed files with 28 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
path: "{{ redis_config_file }}"
|
||||
regexp: '^databases 16$'
|
||||
line: 'databases {{ instances_number }}'
|
||||
when: instances_number <= 16
|
||||
when: instances_number|int <= 16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue