groups to optional_groups

This commit is contained in:
Iwan Clément
2018-12-30 10:51:21 +01:00
parent bebe08c381
commit 0b7308ed3c
2 changed files with 4 additions and 4 deletions

View File

@@ -4,13 +4,13 @@ include:
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" %}

View File

@@ -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" %}