diff --git a/main.yml b/main.yml index 237d0c5..19ce1ea 100644 --- a/main.yml +++ b/main.yml @@ -199,11 +199,6 @@ loop: "{{ groups['cluster'] }}" become: true - # 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 - when: ansible_os_family == "RedHat" - - name: Run linpack benchmark. hosts: cluster become: false @@ -226,6 +221,11 @@ dest: "{{ hpl_root }}/tmp/hpl-2.3/bin/rpi/HPL.dat" mode: 0644 + # 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 + when: ansible_os_family == "RedHat" + - name: Run the benchmark. ansible.builtin.command: mpirun -f cluster-hosts ./xhpl args: