Skip to content

Commit

Permalink
feat: make sure groups are available
Browse files Browse the repository at this point in the history
Merge branch 'master' of https://github.com/hatsch/ansible-users into develop

closes #7
  • Loading branch information
franklinkim committed Apr 14, 2016
2 parents a58961d + a57ab08 commit 232fe41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/manage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---

- name: Adding primary group
group: name="{{ users_group }}" state=present
when: users_group is defined

- name: Adding secondary groups
group: name="{{ item }}" state=present
with_items: "{{ users_groups|default([]) }}"

- name: Adding users
user:
name: "{{ item.username }}"
Expand Down

0 comments on commit 232fe41

Please sign in to comment.