Align license headers with REUSE guidelines
[kuberef.git] / playbooks / roles / pre-install / tasks / main.yml
index da21c16..a081068 100644 (file)
@@ -1,15 +1,13 @@
 ---
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020 Samsung Electronics
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-- name: Ensure Python3 is installed (Equinix Metal)
+
+# SPDX-FileCopyrightText: 2020 Samsung Electronics
+#
+# SPDX-License-Identifier: Apache-2.0
+
+- name: Ensure Python3 is installed for CentOS (Equinix Metal)
   raw: yum install -y python3
+  ignore_errors: true
+  failed_when: false
   when: lookup('env', 'VENDOR') == 'equinix-metal'
 
 - name: Gather facts
   include_vars:
     file: "{{ ansible_os_family }}.yml"
 
+- name: Update cache (RedHat)
+  yum:
+    update_cache: yes
+  when: ansible_os_family == "RedHat"
+
+- name: Update cache (Debian)
+  apt:
+    update_cache: yes
+  when: ansible_os_family == "Debian"
+
 - name: Install BRMA requirements
   become: true
   package: