]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: RHSM register w/ full hostname 684/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 27 Jun 2022 14:29:08 +0000 (10:29 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 27 Jun 2022 14:29:08 +0000 (10:29 -0400)
For some reason, sometimes hosts try to register with their short hostname.  Sometimes with the FQDN.

As of Satellite 6.5, the service won't let you register two different hostnames with the same UUID (https://access.redhat.com/solutions/4207781).

This change makes sure all hosts register with the FQDN so there's no more conflicts.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index b1765cfee8f26f4c1030c40ddf7613f431759e41..f8c79fe08f26ddd16cd0a9e1cc6de3bddd2a8135 100644 (file)
@@ -53,6 +53,7 @@
   command: subscription-manager register
            --activationkey={{ subscription_manager_activationkey }}
            --org={{ subscription_manager_org }}
+           --name={{ ansible_fqdn }}
            {% if set_rhsm_release|default(false)|bool == true %}--release={{ ansible_distribution_version }}{% endif %}
            --force
   no_log: true