Skip to content

Instantly share code, notes, and snippets.

@martbhell
Created April 12, 2018 11:21
Show Gist options
  • Save martbhell/da166decadc5c8c13d2b5ddb0c0d098f to your computer and use it in GitHub Desktop.
Save martbhell/da166decadc5c8c13d2b5ddb0c0d098f to your computer and use it in GitHub Desktop.
ansible role users test playbook
---
- name: first add a few users that we later remove
hosts: testhost
gather_facts: False
vars:
- bootstrap_user: cloud-user
- adminusers:
- {name: admin6, state: 'present', uid: 5006, group: "{{admingroup}}", shell: "{{adminshell}}" }
- moreusers:
- {name: user4, state: 'present', uid: 6004 }
roles:
- ../ansible-role-users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment