Debug School

surya mishra
surya mishra

Posted on

Program 2 – Surya Mishra

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
}
Enter fullscreen mode Exit fullscreen mode

[root@localhost /]# more /etc/passwd | grep deploy-user
deploy-user❌1001:1001::/home/deploy-user:/bin/bash
`

Top comments (0)