retrace: Drop GID modification for now

The management of groups is opaque to me right now and it seems
modifying the GID in this case might be useless or even harmful
so let's drop it for now.
This commit is contained in:
Matěj Grabovský 2021-06-17 10:06:44 +02:00 committed by kevin
parent 8477979cf8
commit afd82d8a50

View file

@ -18,8 +18,9 @@
name: httpd
state: stopped
# create uid - this is normaly done by retrace package
# but the package is not installed yet at this momement
# Create UID with our reserved UID. This is normaly done during the
# installation of the retrace-server package but it's not yet installed
# at this momement.
- name: Ensure correct UID and home directory
user:
name: retrace
@ -27,10 +28,15 @@
home: "{{ retrace_user_home }}"
create_home: yes
- name: Ensure correct GID
group:
name: retrace
gid: "{{ retrace_user_uid_gid }}"
# NOTE: We do not attempt to change the GID here if it's incorrect
# since groups are not managed locally (via /etc/group) on these servers.
# TODO: Find the correct way to do this and if it's even necessary.
# - name: Ensure correct GID
# group:
# name: retrace
# gid: "{{ retrace_user_uid_gid }}"
# system: yes
# state: present
- name: Restart httpd service after modifications are done
service: