diff --git a/roles/tpa_single_node/tasks/main.yml b/roles/tpa_single_node/tasks/main.yml index 384046b..bfd21fc 100644 --- a/roles/tpa_single_node/tasks/main.yml +++ b/roles/tpa_single_node/tasks/main.yml @@ -1,4 +1,9 @@ --- +- name: Get IP of the current node + # The tasks below run locally, so their ansible_ssh_host is 127.0.0.1 + ansible.builtin.set_fact: + tpa_single_node_rhel_host: "{{ ansible_ssh_host }}" + - name: Set a variable about Rhel ansible.builtin.set_fact: rhel: false diff --git a/roles/tpa_single_node/vars/main.yml b/roles/tpa_single_node/vars/main.yml index 3cffd46..4a69b94 100644 --- a/roles/tpa_single_node/vars/main.yml +++ b/roles/tpa_single_node/vars/main.yml @@ -1,7 +1,6 @@ --- # vars file for tpa_scaffolding tpa_single_node_base_hostname: trustification -tpa_single_node_rhel_host: "{{ lookup('env', 'TPA_RHEL_HOST') | default('192.168.121.60', true) }}" tpa_single_node_certificates_dir: ./certs/ tpa_single_node_config_dir: /etc/rhtpa tpa_single_node_kube_manifest_dir: "{{ tpa_single_node_config_dir }}/manifests"