2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2020 Samsung Electronics
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 - name: Ensure Python3 is installed (Equinix Metal)
12 raw: yum install -y python3
13 when: lookup('env', 'VENDOR') == 'equinix-metal'
18 - name: Load distro variables
20 file: "{{ ansible_os_family }}.yml"
22 - name: Install BRMA requirements
27 with_items: "{{ bmra_pkgs }}"
29 - name: Check if Python is present in PATH
34 - name: Check if /usr/bin/python exists
39 - name: Create symlink for Python
45 - not pybin.stat.exists