sleighzy / ansible-kafka

Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
MIT License
122 stars 80 forks source link

Create user and group as system user/group #20

Closed mskott closed 2 years ago

mskott commented 2 years ago

Setting this only influences new installs where the user and/or group doesn't exist.

I would have liked to also define the users HOME to kafka_dir or /nonexistent (used by at least Debian for system users where HOME doesn't really make sense), but that would fail when the user all ready exists because he would usually have a running process.

sleighzy commented 2 years ago

Thanks for the PR @mskott , much appreciated. Based on my reading of adduser for the supported platforms it looks like other linux OS's won't create a home dir for system users, but Debian still appears to. The Ansible task, based on createhome: no, shouldn't create a home dir regardless.

I'm fine with the changes you've proposed.

The lint errors can be ignored, this appears to be an issue with the linting tool across a number of repos at the moment.