fix(ansible): prefix Syft check variable with sbom_
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Check if Syft is installed
|
- name: Check if Syft is installed
|
||||||
ansible.builtin.command: syft version
|
ansible.builtin.command: syft version
|
||||||
register: syft_check
|
register: sbom_syft_check
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
url: https://raw.githubusercontent.com/anchore/syft/main/install.sh
|
url: https://raw.githubusercontent.com/anchore/syft/main/install.sh
|
||||||
dest: /tmp/install-syft.sh
|
dest: /tmp/install-syft.sh
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: syft_check.rc != 0
|
when: sbom_syft_check.rc != 0
|
||||||
|
|
||||||
- name: Install Syft
|
- name: Install Syft
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: /tmp/install-syft.sh -b /usr/local/bin
|
cmd: /tmp/install-syft.sh -b /usr/local/bin
|
||||||
when: syft_check.rc != 0
|
when: sbom_syft_check.rc != 0
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
||||||
- name: Create report directory
|
- name: Create report directory
|
||||||
|
|||||||
Reference in New Issue
Block a user