aboutsummaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-02-13 23:10:06 +0100
committerRomain Gonçalves <me@rgoncalves.se>2024-02-13 23:16:09 +0100
commitb1f371ec9d587e3727e85afe34473ed154d1fc48 (patch)
tree8bdb6ba50c499d77262bfa9cb5a845353c9cdcd4 /group_vars
parent2a53a9778d87e6f525c6cf4f23052f1f3d35911e (diff)
downloadrules-b1f371ec9d587e3727e85afe34473ed154d1fc48.tar.gz
feat(roles/nextcloud): automate with occ
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml
index ca98ea6..ee658c1 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -35,6 +35,16 @@ __global_services:
# roles overrides
+nextcloud__db_password: "{{ lookup(
+ 'ansible.builtin.password',
+ 'secrets/files/passwords/' + inventory_hostname + '_nextcloud__db.txt',
+ )}}"
+nextcloud__admin_password: "{{ lookup(
+ 'ansible.builtin.password',
+ 'secrets/files/passwords/' + inventory_hostname + '_nextcloud__admin.txt',
+ )}}"
+nextcloud__admin_email: contact@rgoncalves.se
+
httpd__log_format: forwarded
wireguard_domain_controller: "{{ __global_domain_controller }}"
@@ -82,3 +92,13 @@ sshd_keys__users: "[
{{ user.username }},
{% endfor %}
]"
+
+nextcloud__users: "[
+ {% for user in __users %}
+ {{ {
+ 'username': user.username,
+ 'fullname': user.firstname + ' ' + user.lastname,
+ 'email': user.email,
+ } }},
+ {% endfor %}
+ ]"
remember that computers suck.