小编Mik*_*hao的帖子

ansible iam_user 删除不起作用

我试图通过以下方式删除用户:

  - name: "Remove user abc"
    iam_user:
      name: abc
      state: absent
Run Code Online (Sandbox Code Playgroud)

它给了我以下错误:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: DeleteConflictException: An error occurred (DeleteConflict) when calling the DeleteUser operation: Cannot delete entity, must delete access keys first.
fatal: [localhost]: FAILED! => {
    "changed": false, 
    "error": {
        "code": "DeleteConflict", 
        "message": "Cannot delete entity, must delete access keys first.", 
        "type": "Sender"
    }, 
    "response_metadata": {
        "http_headers": {
            "content-length": "298", 
            "content-type": "text/xml", 
            "date": "Thu, 12 …
Run Code Online (Sandbox Code Playgroud)

ansible ansible-2.x

5
推荐指数
1
解决办法
577
查看次数

标签 统计

ansible ×1

ansible-2.x ×1