Created
May 29, 2019 15:18
-
-
Save mcgarrigle/a633815a0c13e7c67ebc683b60cabcae to your computer and use it in GitHub Desktop.
Ansible: New Users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: | |
- "localhost" | |
connection: "local" | |
vars: | |
users: | |
- paul | |
- tanya | |
- ruby | |
tasks: | |
- name: "Create group" | |
group: | |
name: "admin" | |
- name: "Create user accounts and add users to groups" | |
user: | |
name: "{{ item }}" | |
groups: "admin" | |
with_items: "{{ users }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment