Last active
December 23, 2015 09:29
-
-
Save gregbuehler/6614468 to your computer and use it in GitHub Desktop.
user script
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
users: | |
- { username: user1, password: password } | |
- { username: user2, password: password } | |
- { username: user3, password: password } | |
- { username: user4, password: password } |
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
- name: common | Create users | |
sudo: yes | |
user: name={{ item.username }} | |
group={{ item.username }} | |
groups=wheel | |
password={{ item.password }} | |
update_password=on_create | |
createhome=yes | |
home=/home/{{ item.username }} | |
state=present | |
with_items: | |
- users |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment