Skip to content

Bug when updating user password #217

@sindovski

Description

@sindovski
SUMMARY

When trying to update a user's password through a module with the update_password=always option, error 204 occurs.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

rabbitmq_user

ANSIBLE VERSION

ansible [core 2.18.5]

COLLECTION VERSION

community.general 10.6.0
community.rabbitmq 1.6.0

STEPS TO REPRODUCE
- name: Create/Update user with new password (update_password=always)
  community.rabbitmq.rabbitmq_user:
    user: "{{ test_user }}"
    password: "{{ new_password }}"
    update_password: always
    login_user: "{{ admin_name }}"
    login_password: "{{ admin_password }}"
    login_host: "{{ login_host }}"
    login_port: "{{ login_port }}"
    permissions:
      - vhost: /
        configure_priv: ".*"
        read_priv: ".*"
        write_priv: ".*"
    tags: "monitoring"
    state: present
  register: user_result
ACTUAL RESULTS

fatal: [localhost]: FAILED! => changed=false msg: Error trying to set tags for the user test.user in rabbitmq. Status code '204'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions