Skip to content

Commit

Permalink
Gets cluster name and uuid with it in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
John2020-cyber committed Oct 3, 2024
1 parent 0a1897a commit 1fb55f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
api_version: operator.openshift.io/v1
register: ingress_controller_info

- name: Update hostname
- name: Update hostname with cluster name and ID
ansible.builtin.set_fact:
cluster_name: "{{ ingress_controller_info.resources[0].status.domain | regex_search('(?<=\\.)[^.]+(?=\\.)') }}"
cluster_name: "{{ ingress_controller_info.resources[0].status.domain | regex_search('(?<=\\.)[^.]+\\.[^.]+(?=\\.)') }}"

- name: Determine if integration exists for the cluster
ansible.builtin.set_fact:
Expand Down

0 comments on commit 1fb55f7

Please sign in to comment.