Open mschreie opened 1 year ago
Files identified in the description: None
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @alikins @barnabycourt @kahowell click here for bot help
Hm interesting behaviour, I don't see what could be wrong. Could you please attach the (redacted of credentials, of course) output of ansible-playbook -vv
?
Also, can you please try replacing the redhat_subscription
task in your playbook with debug
, and check what's the output? I'm thinking about something like
---
- name: subscribe playbook
hosts: some_unsubscribed_rhel8_host
remote_user: root
tasks:
- name: register on RHN
debug:
var: rhsm_password
vars:
rhsm_username: "mschreie"
rhsm_password: "!mypassword"
rhsm_poolid: "2c9xxxxxx"
register: subscribe
If you run ansible-playbook -vvv subscribe.yml -i inventory -e @myvar.yml
, do you get the right output for the rhsm_password
variable?
cc @cnsnyder click here for bot help
Summary
subscription_manager with username / password authentication fails in rare circumstances To make it fail:
Issue Type
Bug Report
Component Name
redhat_subscription
Ansible Version
Community.general Version
Configuration
OS / Environment
cat /etc/rele NAME="Red Hat Enterprise Linux" VERSION="9.0 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.0" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.0 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/" BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=9.0 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="9.0" Red Hat Enterprise Linux release 9.0 (Plow) Red Hat Enterprise Linux release 9.0 (Plow) cpe:/o:redhat:enterprise_linux:9::baseos
Steps to Reproduce
Playbook to be used:
myvar.yml to be used:
Hint: poolid and password is not the original password. Working commands:
NOT working command:
This command comes back with "permission denied"
Expected Results
I expect that the command works even if the password starts with an exclamation mark.
Actual Results
permission denied - i don't have the output at hand at this very moment....
Code of Conduct