Skip to content

Instantly share code, notes, and snippets.

@skyler
Created September 18, 2014 15:46
Show Gist options
  • Save skyler/daa3d97c468a004c5a76 to your computer and use it in GitHub Desktop.
Save skyler/daa3d97c468a004c5a76 to your computer and use it in GitHub Desktop.
- name: create users
user: name={{ item.name }} state=present
uid={{ item.uid }}
system={{ item.get('is_system', 'no') }}
groups={{ ','.join(supplement_groups.get(item.name)) }} append=yes
with_items:
users
when: item.name in enabled_users
tags:
- users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment