We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b3001 commit f473e59Copy full SHA for f473e59
roles/cloudera_manager/wait_for_heartbeat/tasks/main.yml
@@ -29,3 +29,12 @@
29
vars:
30
heartbeat_time: "{{ host_status.json['lastHeartbeat'] | default('') }}"
31
current_time: "{{ ansible_date_time.iso8601 }}"
32
+
33
+- name: Ensure the hostname reported in the heartbeat matches the inventory name
34
+ assert:
35
+ that: "{{ cloudera_manager_host == host_status.json.hostname }}"
36
+ success_msg: The hostname reported by the agent matches the expected
37
+ fail_msg: >
38
+ The hostname reported by the agent ({{ host_status.json.hostname }})
39
+ doesn't match the expected ({{ cloudera_manager_host }}).
40
+ Ensure the host entry in /etc/hosts starts with: {{ host_status.json.ipAddress }} {{ cloudera_manager_host }} ...
0 commit comments