Hi,
I'm trying to register new machines with ansible.
Prior using ansible I used to run:
subscription-manager register --org="MYCOMPANY" --activationkey="MYKEY"
In my ansible playbook i used redhat_subscription module in this way:
- name: Register and subscribe to Satellite server
redhat_subscription:
state: present
activationkey: MYKEY
org_id: MYCOMPANY
when I try to run playbook i receive this error:
fatal: [1.1.1.1]: FAILED! => {"changed": false, "cmd":
"/usr/sbin/subscription-manager register --org MYCOMPANY --activationkey
VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "msg": "Validation failed: Name hostname
can contain only lowercase letters, numbers, dashes and dots according to
RFC921, RFC952 and RFC1123, Name hostname can contain only lowercase letters,
numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "rc": 70,
"stderr": "Validation failed: Name hostname can contain only lowercase letters,
numbers, dashes and dots according to RFC921, RFC952 and RFC1123, Name hostname
can contain only lowercase letters, numbers, dashes and dots according to
RFC921, RFC952 and RFC1123\n", "stderr_lines": ["Validation failed: Name
hostname can contain only lowercase letters, numbers, dashes and dots according
to RFC921, RFC952 and RFC1123, Name hostname can contain only lowercase
letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"],
"stdout": "", "stdout_lines": []}
I also tried to use organization id number instead name but it fails anyway.
Where am i wronging?
Thanks,
Fabio
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/467dcb9f-cb45-476f-af9b-99e1c10d66b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.