]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
revert a529ff92239d74322f8dc2e4d907e13b42c3714b unbreak-rhel
authorZack Cerza <zack@redhat.com>
Tue, 16 May 2023 00:46:06 +0000 (18:46 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 16 May 2023 00:46:06 +0000 (18:46 -0600)
roles/common/tasks/rhel-entitlements.yml

index bfeb2267a09229fa6e33ddd0b559d84173039652..fa89bd9150f8cc1fb6b85dbd195809020d19a37a 100644 (file)
   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 }}"