blob: d163a5ec68a45a8a3bebe0344bf281f17b9590ff [file] [log] [blame]
---
# devtools tasks/shellcheck.yml
#
# SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Download shellcheck archive
get_url:
url: "{{ devtools_shellcheck_url }}"
checksum: "{{ devtools_shellcheck_checksum }}"
dest: "{{ devtools_dist_dir }}/shellcheck.tar.xz"
- name: Unarchive shellcheck
unarchive:
src: "{{ devtools_dist_dir }}/shellcheck.tar.xz"
dest: "{{ devtools_dist_dir }}"
remote_src: true
- name: Install shellcheck binary
copy:
src: >-
{{ devtools_dist_dir }}/shellcheck-v{{
devtools_shellcheck_version }}/shellcheck
dest: /usr/local/bin/shellcheck
mode: "0755"
remote_src: true