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
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:
parent
aab3381887
commit
6ae9e04f27
|
@ -30,7 +30,9 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* evoadmin-web: Fix PHP version for Bookworm
|
* evoadmin-web: Fix PHP version for Bookworm
|
||||||
* 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