Guest User

Untitled

a guest
Sep 25th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. TASK [debugging : User management - Copy SSH key to remote host for the new user] *******************************************************************************************
  2. failed: [archlinux] (item={'username': 'a', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/bash', 'usergroups': 'users', 'userstate': 'present'}) => {"ansible_loop_var": "item", "changed": false, "changed_when_result": "The conditional check ''Failed to lookup user' not in _UserStatus.msg' failed. The error was: error while evaluating conditional ('Failed to lookup user' not in _UserStatus.msg): 'dict object' has no attribute 'msg'. 'dict object' has no attribute 'msg'", "comment": null, "exclusive": false, "follow": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "a", "userpswd": "SOMETHING", "usershell": "/bin/bash", "usersshpubkeyfile": "id_rsa", "userstate": "present", "uservncpswd": "SECRET"}, "key": "id_rsa", "key_options": null, "keyfile": "/home/a/.ssh/authorized_keys", "manage_dir": true, "path": null, "state": "present", "user": "a", "validate_certs": true}
  3. failed: [debian12] (item={'username': 'a', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/bash', 'usergroups': 'users', 'userstate': 'present'}) => {"ansible_loop_var": "item", "changed": false, "changed_when_result": "The conditional check ''Failed to lookup user' not in _UserStatus.msg' failed. The error was: error while evaluating conditional ('Failed to lookup user' not in _UserStatus.msg): 'dict object' has no attribute 'msg'. 'dict object' has no attribute 'msg'", "comment": null, "exclusive": false, "follow": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "a", "userpswd": "SOMETHING", "usershell": "/bin/bash", "usersshpubkeyfile": "id_rsa", "userstate": "present", "uservncpswd": "SECRET"}, "key": "id_rsa", "key_options": null, "keyfile": "/home/a/.ssh/authorized_keys", "manage_dir": true, "path": null, "state": "present", "user": "a", "validate_certs": true}
  4. failed: [archlinux] (item={'username': 'b', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/bash', 'usergroups': 'users', 'userstate': 'absent'}) => {"ansible_loop_var": "item", "changed": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "b", "userpswd": "SOMETHING", "usershell": "/bin/bash", "usersshpubkeyfile": "id_rsa", "userstate": "absent", "uservncpswd": "SECRET"}, "msg": "Failed to lookup user b: \"getpwnam(): name not found: 'b'\""}
  5. failed: [debian12] (item={'username': 'b', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/bash', 'usergroups': 'users', 'userstate': 'absent'}) => {"ansible_loop_var": "item", "changed": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "b", "userpswd": "SOMETHING", "usershell": "/bin/bash", "usersshpubkeyfile": "id_rsa", "userstate": "absent", "uservncpswd": "SECRET"}, "msg": "Failed to lookup user b: \"getpwnam(): name not found: 'b'\""}
  6. failed: [archlinux] (item={'username': 'c', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/nologin', 'usergroups': 'users', 'userstate': 'absent'}) => {"ansible_loop_var": "item", "changed": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "c", "userpswd": "SOMETHING", "usershell": "/bin/nologin", "usersshpubkeyfile": "id_rsa", "userstate": "absent", "uservncpswd": "SECRET"}, "msg": "Failed to lookup user c: \"getpwnam(): name not found: 'c'\""}
  7. ...ignoring
  8. failed: [debian12] (item={'username': 'c', 'userpswd': 'SOMETHING', 'usersshpubkeyfile': 'id_rsa', 'uservncpswd': 'SECRET', 'userexpires': '-1', 'usershell': '/bin/nologin', 'usergroups': 'users', 'userstate': 'absent'}) => {"ansible_loop_var": "item", "changed": false, "item": {"userexpires": "-1", "usergroups": "users", "username": "c", "userpswd": "SOMETHING", "usershell": "/bin/nologin", "usersshpubkeyfile": "id_rsa", "userstate": "absent", "uservncpswd": "SECRET"}, "msg": "Failed to lookup user c: \"getpwnam(): name not found: 'c'\""}
  9. ...ignoring
Add Comment
Please, Sign In to add comment