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