Skip to content

Commit

Permalink
Merge pull request #149 from stakater/stadnaloneCName
Browse files Browse the repository at this point in the history
Gets cluster name and uuid with it in standalone mode
  • Loading branch information
TehreemNisa authored Oct 3, 2024
2 parents 0a1897a + 1fb55f7 commit 3f5f05e
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 3f5f05e

Please sign in to comment.