From 491a1888245317e94c3628b99c0f09da47570b63 Mon Sep 17 00:00:00 2001 From: Fabio Wullschleger Date: Wed, 12 Jun 2019 23:02:56 +0200 Subject: [PATCH] add possibility to create system groups, add system parameter for groups_to_create with default no --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7ddcbd0..226f495 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,9 @@ --- - name: Creating groups - group: name="{{item.name}}" gid="{{item.gid | default(omit)}}" + group: + name: "{{item.name}}" + gid: "{{item.gid | default(omit)}}" + system: "{{item.system | default(no)}}" with_items: "{{groups_to_create}}" tags: ['users','groups','configuration']