Skip to content

Commit

Permalink
Read the host_ip from the machine
Browse files Browse the repository at this point in the history
Signed-off-by: desmax74 <[email protected]>
  • Loading branch information
desmax74 committed Oct 24, 2024
1 parent ccdb8e9 commit c7ed629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions roles/tpa_single_node/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion roles/tpa_single_node/vars/main.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c7ed629

Please sign in to comment.