From 9d7474457824a4b477763e19d432c4cfcd497def Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 9 Oct 2022 00:19:18 +0200 Subject: [PATCH] =?UTF-8?q?nextcloud:=20Erzeuge=20zuf=C3=A4lliges=20Admin-?= =?UTF-8?q?Passwort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + defaults/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bb29d0..7f09e23 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Diese Rolle installiert [Nextcloud](https://nextcloud.com). Sie umfasst: ```Shell ansible-playbook playbooks/nextcloud.yml ``` +- Bei der Erstinstallation einer Nextclou-Instanz gibt die Rolle anschließend die Anmeldeinformationen für den Admin-Zugang aus. # Aktualisierung des Cores/ von Apps diff --git a/defaults/main.yml b/defaults/main.yml index f0afc5a..cbb136d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,6 @@ --- nextcloud_admin_user: systemausfall.org -nextcloud_admin_pw: admin +nextcloud_admin_pw: "{{ lookup('password', '/tmp/{{ instance.name }}_admin_pwd length=42 chars=ascii_letters,digits') }}" nextcloud_db_password: "{{ lookup('password', '/tmp/{{ instance.name }}_db_pwd length=42 chars=ascii_letters,digits') }}" nextcloud_github_api_url: https://api.github.com/repos/nextcloud/server/releases/latest nextcloud_dl_url: "https://download.nextcloud.com/server/releases/nextcloud-{{ latest_version.stdout }}.tar.bz2"