updated to include version of opdk prior to 4.17.01
diff --git a/tasks/main.yml b/tasks/main.yml index 479fefb..4d3d3a4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -6,6 +6,14 @@ shell: '/usr/sbin/reboot now' async: 0 poll: 0 + when: ansible_os_family == "RedHat" and ansible_distribution_major_version | version_compare("6", ">") + + - name: Restarting node now + become: yes + shell: '/usr/sbin/reboot now' + async: 0 + poll: 0 + when: ansible_os_family == "RedHat" and ansible_distribution_major_version | version_compare("6", ">=" )and ansible_distribution_major_version | version_compare("7", "<" ) - name: Pausing playbook for server restart local_action: