groups to optional_groups
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
include:
|
||||
- softwares.sudo
|
||||
|
||||
|
||||
AnaisUser:
|
||||
user.present:
|
||||
- name: anais
|
||||
- fullname: Anais Lemoussu
|
||||
- fullname: Anais L
|
||||
- uid: 4523
|
||||
- shell: /bin/bash
|
||||
# - hash_password: True
|
||||
# - password: Monpremiermotdepasse
|
||||
- empty_password: True
|
||||
- groups:
|
||||
- optional_groups:
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
- sudo
|
||||
{% if grains['os']== "Ubuntu" %}
|
||||
|
||||
@@ -5,7 +5,7 @@ IwanUser:
|
||||
user.present:
|
||||
- name: iwan
|
||||
- fullname: Iwan CLEMENT
|
||||
- groups:
|
||||
- optional_groups:
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
- sudo
|
||||
{% if grains['os']== "Ubuntu" %}
|
||||
|
||||
Reference in New Issue
Block a user