Skip to content

Commit

Permalink
Fixes #21: Make sure host_ips is set if not running SSH playbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Nov 2, 2023
1 parent 50b0725 commit beedb58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,14 @@
dest: "{{ hpl_root }}/tmp/hpl-2.3/bin/top500/HPL.dat"
mode: 0644

- name: Generate list of host IP addresses.
ansible.builtin.set_fact:
host_ips: "{{ host_ips + [ hostvars[item].ansible_default_ipv4.address ] }}"
loop: "{{ groups['cluster'] }}"

# If this is not done, the nodes will fail to connect to each other
# causing the playbook to hang at 'Run the benchmark.'
- include_tasks: firewall/configure-firewall.yml
- include_tasks: tasks/firewall-configure.yml
when: ansible_os_family == "RedHat"

- name: Run the benchmark.
Expand All @@ -203,7 +208,7 @@
register: mpirun_output
run_once: true

- include_tasks: firewall/reset-firewall.yml
- include_tasks: tasks/firewall-reset.yml
when: ansible_os_family == "RedHat"

- name: Output the results.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit beedb58

Please sign in to comment.