diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py index 514c3f088da..aa41bde915b 100644 --- a/lib/ansible/modules/packaging/os/redhat_subscription.py +++ b/lib/ansible/modules/packaging/os/redhat_subscription.py @@ -378,7 +378,7 @@ class Rhsm(RegistrationBase): if release: args.extend(['--release', release]) - rc, stderr, stdout = self.module.run_command(args, check_rc=True) + rc, stderr, stdout = self.module.run_command(args, check_rc=True, expand_user_and_vars=False) def unsubscribe(self, serials=None): '''