3 # SPDX-FileCopyrightText: 2020 Samsung Electronics
5 # SPDX-License-Identifier: Apache-2.0
7 - name: Ensure Python3 is installed for CentOS (Equinix Metal)
8 raw: yum install -y python3
11 when: lookup('env', 'VENDOR') == 'equinix-metal'
16 - name: Load distro variables
18 file: "{{ ansible_os_family }}.yml"
20 - name: Update cache (RedHat)
23 when: ansible_os_family == "RedHat"
25 - name: Update cache (Debian)
28 when: ansible_os_family == "Debian"
30 - name: Install BRMA requirements
35 with_items: "{{ bmra_pkgs }}"
37 - name: Check if Python is present in PATH
42 - name: Check if /usr/bin/python exists
47 - name: Create symlink for Python
53 - not pybin.stat.exists
56 - name: Fix /etc/default/grub (1/2)
58 path: /etc/default/grub
62 - name: Fix /etc/default/grub (2/2)
64 path: /etc/default/grub