--- #################################################################### # WARNING: These are designed specifically for Ansible tests # # and should not be used as examples of how to write Ansible roles # #################################################################### # Yarn package manager integration tests # Copyright (c) 2018 David Gunter, # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later # ============================================================ - include_tasks: run.yml vars: nodejs_version: '{{ item.node_version }}' nodejs_path: 'node-v{{ nodejs_version }}-{{ ansible_facts.system|lower }}-{{ nodejs_arch }}' nodejs_arch: '{{ "x64" if ansible_architecture == "x86_64" else "arm64" if ansible_architecture in ("arm64", "aarch64") else ansible_architecture }}' nodejs_ext: '{{ ".tar.xz" if ansible_system == "Linux" else ".tar.gz" }}' nodejs_download: 'https://nodejs.org/dist/v{{ nodejs_version }}/{{ nodejs_path }}{{ nodejs_ext }}' yarn_version: '{{ item.yarn_version }}' with_items: - {node_version: 16.20.2, yarn_version: 1.22.22} # oldest node version with macOS arm64 support when: - not (ansible_facts.os_family == 'Alpine') # TODO