From: Zack Cerza Date: Tue, 16 May 2023 00:46:06 +0000 (-0600) Subject: revert a529ff92239d74322f8dc2e4d907e13b42c3714b X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Funbreak-rhel;p=ceph-cm-ansible.git revert a529ff92239d74322f8dc2e4d907e13b42c3714b --- diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index bfeb2267..fa89bd91 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -33,47 +33,6 @@ command: subscription-manager clean when: use_satellite == true -- name: remove host UUID files - file: - state: absent - path: "{{ item }}" - with_items: - - /var/lib/dbus/machine-id - - /etc/machine-id - - /etc/rhsm/facts/dmi_system_uuid.facts - - /etc/rhsm/facts/katello.facts - - /etc/insights-client/machine-id - when: use_satellite == true - -- name: Generate new UUID - shell: uuidgen - register: new_uuid - when: use_satellite == true - -- name: Add new UUID to dmi_system_uuid.facts - ansible.builtin.lineinfile: - path: /etc/rhsm/facts/dmi_system_uuid.facts - create: yes - line: | - WA{"dmi.system.uuid": "{{ new_uuid.stdout }}"}WA - when: use_satellite == true - -- name: remove 'WA' PREFIX from dmi_system_uuid.facts - replace: dest="/etc/rhsm/facts/dmi_system_uuid.facts" regexp="WA" replace="" - when: use_satellite == true - -- name: Add fqdn to katello.facts - ansible.builtin.lineinfile: - path: /etc/rhsm/facts/katello.facts - create: yes - line: | - WA{"network.hostname-override": "{{ ansible_fqdn }}"}WA - when: use_satellite == true - -- name: remove 'WA' PREFIX from katello.facts - replace: dest="/etc/rhsm/facts/katello.facts" regexp="WA" replace="" - when: use_satellite == true - - name: Install CA Cert from Satellite Server yum: name: "{{ satellite_cert_rpm }}"