From: David Galloway Date: Mon, 27 Jun 2022 14:29:08 +0000 (-0400) Subject: common: RHSM register w/ full hostname X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F684%2Fhead;p=ceph-cm-ansible.git common: RHSM register w/ full hostname 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 --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index b1765cfe..f8c79fe0 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -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