root@localhost /]# ansible localhost -m ansible.builtin.user -a"state=present name=deploy-user group=deploy shell=/bin/bash"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | CHANGED => {
"changed": true,
"comment": "",
"create_home": true,
"group": 1001,
"home": "/home/deploy-user",
"name": "deploy-user",
"shell": "/bin/bash",
"state": "present",
"system": false,
"uid": 1001
}
[root@localhost /]# more /etc/passwd | grep deploy-user
deploy-user❌1001:1001::/home/deploy-user:/bin/bash``
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)