Skip to content

Commit

Permalink
fix(ansible): tiny refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
  • Loading branch information
glimchb authored May 25, 2024
1 parent 24cc8c7 commit 0c51140
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lab/ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@
imc_remote_file: /work/intel-ipu-pldm-image-{{ imc_version }}/intel-ipu-pldm-{{ imc_version }}.bin
ansible_remote_tmp: /tmp
tasks:
- ansible.builtin.shell: cat /etc/issue
- ansible.builtin.shell: /usr/bin/ipu-update -i

- name: Install socat
ansible.builtin.package:
name: socat
Expand All @@ -205,15 +202,15 @@
ansible.builtin.stat: path={{ imc_local_file }}
register: imc_local_file_check

- ansible.builtin.shell: /usr/bin/ipu-update -i

- name: Extract {{ imc_local_file }} into /work
when:
- imc_local_file_check.stat.exists
- not imc_remote_file_check.stat.exists
block:
- ansible.builtin.unarchive: src={{ imc_local_file }} dest=/work

- ansible.builtin.shell: cat /etc/issue
- ansible.builtin.shell: /usr/bin/ipu-update -i
- ansible.builtin.shell: /usr/bin/ipu-update -i /work/{{ imc_remote_file }}
when: imc_remote_file_check.stat.exists

Expand Down

0 comments on commit 0c51140

Please sign in to comment.