User

  • user.add
  • user.group

user.add

Adds a user to the system.

KeyTypeOoptionalDescription
actionstringnouser.add
fullnamestringnofull name of user
home_dirstringnohome directory of user
usernamestringnousername of user
shellstringyesshell for user
grouplistyesgroups to add new user to

Example

- action: user.add
  fullname: testuser
  home_dir: /home/test
  username: test
  shell: sh
  
## Add user while also adding to groups
- action: user.add
  fullname: testuser
  home_dir: /home/test
  username: test
  shell: sh
  group:
  - testgroup

user.group

Adds an already created user to a group.

KeyTypeOptionalDescription
actionstringnouser.group
usernamestringnousername of user to add to group
grouplistnogroups to add user to

Example

- action: user.group
  username: test
  group:
  - wheel