webapps/nextcloud: Use var nextcloud_user for unix group instead of instance_name to prevent mixup

This commit is contained in:
Ludovic Poujol 2022-09-01 12:02:23 +02:00
parent ee67ebca8b
commit a03a338af9

View file

@ -1,7 +1,7 @@
---
- name: Create Nextcloud group
group:
name: "{{ nextcloud_instance_name | mandatory }}"
name: "{{ nextcloud_user | mandatory }}"
state: present
tags:
- nextcloud
@ -9,7 +9,7 @@
- name: Create Nextcloud user
user:
name: "{{ nextcloud_user | mandatory }}"
group: "{{ nextcloud_user }}"
group: "{{ nextcloud_user | mandatory }}"
home: "{{ nextcloud_home | mandatory }}"
shell: '/bin/bash'
create_home: True