mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
[stable-11] Update tests to pass on macOS arm64 (#11544) (#11546) Update tests to pass on macOS arm64 (#11544) (cherry picked from commit9b9d8eac09) (cherry picked from commitb247603961) Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Matt Clay <matt@mystile.com>
25 lines
1.3 KiB
YAML
25 lines
1.3 KiB
YAML
---
|
|
####################################################################
|
|
# 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, <david.gunter@tivix.com>
|
|
# 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_os_family == 'Alpine') # TODO
|