webapps/nextcloud: fix misplaced gid attr and added check for nexctcloud uid
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2633|4|2629|3|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/387//ansiblelint">Evolix » ansible-roles » unstable #387</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
Tom David--Broglio 2023-11-09 16:48:17 +01:00
parent aab3381887
commit 6ae9e04f27
2 changed files with 9 additions and 2 deletions

View file

@ -30,7 +30,9 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evoadmin-web: Fix PHP version for Bookworm
* 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 missing gid
* webapps/nextcloud: fix misplaced gid attribute
* webapps/nextcloud: added check that nexctcloud uid is over 3000
### Removed

View file

@ -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