-
Notifications
You must be signed in to change notification settings - Fork 0
Create user
Philipp Fedorov edited this page Apr 5, 2021
·
1 revision
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html
tasks:
- name: Creating user "test" with admin access
user:
name: test
shell: /bin/bash
# mkpasswd mkpasswd --method=SHA-512 <password>
password: $6$HWFhq3KmmBnoG$Q.fW8sjTJe2GOR8Vf/B93PqRgwZ/VjNiX57fe5Je4X6G4j80RlhX21eyxqS2/pmFW7iqPnXuQK8eRjn3f/Xdn.
groups: sudo
append: yes