Commit 24330ef2 by Desztics Armand

fixed usergroups, zeroerror

parent b56e3bc7
...@@ -159,15 +159,16 @@ apparmor: ...@@ -159,15 +159,16 @@ apparmor:
{% if grains['osfinger'] == 'Ubuntu-16.04' %} {% if grains['osfinger'] == 'Ubuntu-16.04' %}
user_in_libvirtd_group: user_in_libvirtd_group:
user.present: user:
- present
- name: {{ pillar['user'] }} - name: {{ pillar['user'] }}
- gid_from_name: True
- shell: /bin/bash
- groups: - groups:
{% if grains['os_family'] == 'RedHat' %}
- wheel
{% else %}
- sudo
{% endif %}
- libvirtd - libvirtd
- require:
- file: fix_user_sudoer
fix_user_sudoer:
file.append:
- name: /etc/sudoers
- text: "{{ pillar['user'] }} ALL=(ALL) ALL"
{% endif %} {% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment