Merge pull request #72 from mdschmitt/fix_system_users

fix(users): users should always be created as system users
This commit is contained in:
N 2021-12-09 14:54:50 +00:00 committed by GitHub
commit 11513c4d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,7 @@ prometheus-config-users-install-{{ name }}-user-present:
- shell: {{ p.shell }}
{%- if grains.kernel|lower == 'linux' %}
- createhome: false
{%- if grains.get('osfinger', '') in ['Debian-11'] %}
- system: true
{%- endif %}
{%- elif grains.os_family == 'MacOS' %}
- unless: /usr/bin/dscl . list /Users | grep {{ name }} >/dev/null 2>&1
{%- endif %}