From 7c87375d9577d3fd494b24cc7bf69e2d94194a55 Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis Date: Sun, 17 Jun 2018 18:53:03 +0000 Subject: [PATCH] Bugfixes --- tasks/users.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/users.yml b/tasks/users.yml index 79bf03f..e5d57ca 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -1,12 +1,12 @@ --- -- name: "Add user {{ os_user.name }}" +- name: "Add users" user: name: "{{ os_user.name }}" comment: "{{ os_user.comment }}" uid: "{{ os_user.uid }}" shell: "{{ os_user.shell }}" groups: "{{ os_user.groups }}" - state: "{{ os_user.state }}" + state: "{{ os_user.state | default('present')}}" become: true - name: Copy local ssh key to authorized keys file