Merge pull request #72 from mdschmitt/fix_system_users
fix(users): users should always be created as system users
This commit is contained in:
		
						commit
						11513c4d9c
					
				@ -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 %}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user