forked from evolix/ansible-roles
webapps/nextcloud: fix misplaced gid attr and added check for nexctcloud uid
This commit is contained in:
parent
aab3381887
commit
6ae9e04f27
|
@ -31,6 +31,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
* Add php-fpm82 to LDAP when relevant
|
||||
* nagios: fix default file to monitor for check_clamav_db
|
||||
* webapps/nextcloud: fix missing gid
|
||||
* webapps/nextcloud: fix misplaced gid attribute
|
||||
* webapps/nextcloud: added check that nexctcloud uid is over 3000
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
---
|
||||
- name: Check nextcloud user id is over 2999
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- nextcloud_user_uid >= 3000
|
||||
|
||||
- name: Create {{ nextcloud_user }} unix group
|
||||
|
||||
ansible.builtin.group:
|
||||
name: "{{ nextcloud_user | mandatory }}"
|
||||
state: present
|
||||
gid: "{{ nextcloud_user_uid | mandatory }}"
|
||||
tags:
|
||||
- nextcloud
|
||||
|
||||
|
@ -13,7 +19,6 @@
|
|||
group: "{{ nextcloud_user | mandatory }}"
|
||||
home: "{{ nextcloud_home | mandatory }}"
|
||||
uid: "{{ nextcloud_user_uid | mandatory }}"
|
||||
gid: "{{ nextcloud_user_uid | mandatory }}"
|
||||
shell: '/bin/bash'
|
||||
create_home: True
|
||||
state: present
|
||||
|
|
Loading…
Reference in a new issue