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
|
* Add php-fpm82 to LDAP when relevant
|
||||||
* nagios: fix default file to monitor for check_clamav_db
|
* nagios: fix default file to monitor for check_clamav_db
|
||||||
* webapps/nextcloud: fix missing gid
|
* webapps/nextcloud: fix missing gid
|
||||||
|
* webapps/nextcloud: fix misplaced gid attribute
|
||||||
|
* webapps/nextcloud: added check that nexctcloud uid is over 3000
|
||||||
|
|
||||||
### Removed
|
### 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
|
- name: Create {{ nextcloud_user }} unix group
|
||||||
|
|
||||||
ansible.builtin.group:
|
ansible.builtin.group:
|
||||||
name: "{{ nextcloud_user | mandatory }}"
|
name: "{{ nextcloud_user | mandatory }}"
|
||||||
state: present
|
state: present
|
||||||
|
gid: "{{ nextcloud_user_uid | mandatory }}"
|
||||||
tags:
|
tags:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
|
||||||
|
@ -13,7 +19,6 @@
|
||||||
group: "{{ nextcloud_user | mandatory }}"
|
group: "{{ nextcloud_user | mandatory }}"
|
||||||
home: "{{ nextcloud_home | mandatory }}"
|
home: "{{ nextcloud_home | mandatory }}"
|
||||||
uid: "{{ nextcloud_user_uid | mandatory }}"
|
uid: "{{ nextcloud_user_uid | mandatory }}"
|
||||||
gid: "{{ nextcloud_user_uid | mandatory }}"
|
|
||||||
shell: '/bin/bash'
|
shell: '/bin/bash'
|
||||||
create_home: True
|
create_home: True
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in a new issue