Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password of Rabbitmq user remains unchanged #184

Open
markus-as opened this issue Dec 2, 2024 · 1 comment
Open

Password of Rabbitmq user remains unchanged #184

markus-as opened this issue Dec 2, 2024 · 1 comment

Comments

@markus-as
Copy link

markus-as commented Dec 2, 2024

SUMMARY

Passwords of Rabbitmq users are not changed because the login information is checked instead of the user's password.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.rabbitmq.rabbitmq_user module

ANSIBLE VERSION
ansible [core 2.18.0]
  config file = /home/[...]/ansible.cfg
  configured module search path = ['/home/[...]/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/[...]/venv/lib/python3.12/site-packages/ansible
  ansible collection location = /home/[...]/.ansible/collections:/usr/share/ansible/collections
  executable location = venv/bin/ansible
  python version = 3.12.7 (main, Oct  1 2024, 11:15:50) [GCC 14.2.1 20240910] (/home/[...]/venv/bin/python)
  jinja version = 3.1.4
  libyaml = True

COLLECTION VERSION
Collection         Version
------------------ -------
community.rabbitmq 1.3.0  
CONFIGURATION
CONFIG_FILE() = /home/[...]/ansible.cfg
DEFAULT_BECOME(/home/[...]/ansible.cfg) = True
DEFAULT_ROLES_PATH(/home/[...]/ansible.cfg) = ['/home/[...]/vendor/roles']
EDITOR(env: EDITOR) = vim
INTERPRETER_PYTHON(/home/[...]/ansible.cfg) = /usr/bin/python3

GALAXY_SERVERS:

OS / ENVIRONMENT

Debian bookworm
rabbitmq 3.10.8

STEPS TO REPRODUCE

Use community.rabbitmq.rabbitmq_user with configured login_host and update_password set to always.
Create a user and change the password.
The Password will not be changed and the task runs a unchanged

- name: "ensure rabbitmq user"
  community.rabbitmq.rabbitmq_user:
    login_host: "localhost"
    user: "user"
    password: "secret42"
    update_password: "always"
EXPECTED RESULTS

Password should be changed

ACTUAL RESULTS
TASK [rabbitmq : ensure rabbitmq user] *********************************************
ok: [debian-host] => (item=user)
@markus-as
Copy link
Author

Fixed in PR #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant