diff --git a/ansible/roles/test/tasks/fast-reboot.yml b/ansible/roles/test/tasks/fast-reboot.yml index 909b38541e5..307c4218fa9 100644 --- a/ansible/roles/test/tasks/fast-reboot.yml +++ b/ansible/roles/test/tasks/fast-reboot.yml @@ -79,7 +79,7 @@ flat: yes delegate_to: "{{ ptf_host }}" - - name: set authorized key took from file + - name: set authorized key taken from file authorized_key: user: "{{ ansible_ssh_user }}" state: present @@ -103,6 +103,10 @@ dest: /tmp/ports.json delegate_to: "{{ ptf_host }}" + - name: Install a new sonic image if requested + shell: sonic_installer install -y {{ new_sonic_image }} + when: new_sonic_image is defined + - include: ptf_runner.yml vars: ptf_test_name: Fast-reboot test