From 2d426f7cc6a931f2804799151738be95567513e1 Mon Sep 17 00:00:00 2001 From: Silviu Romonti <44473384+sromonti@users.noreply.github.com> Date: Fri, 26 Jul 2024 14:08:08 +0100 Subject: [PATCH] Delete tasks/oracle_optional.yml --- tasks/oracle_optional.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tasks/oracle_optional.yml diff --git a/tasks/oracle_optional.yml b/tasks/oracle_optional.yml deleted file mode 100644 index 6414fb4..0000000 --- a/tasks/oracle_optional.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -# Copyright (c) 2023 Cisco Systems, Inc. and its affiliates -# All rights reserved. - -- name: Finding repository file that contains ol7_addons section - find: - paths: /etc/yum.repos.d - patterns: "*.repo" - contains: ".*ol7_addons" - use_regex: no - register: REPO_FILE - failed_when: REPO_FILE.matched > 1 - -- name: Enabling existing Oracle Linux Addons repository - ini_file: - path: "{{ REPO_FILE.files|map(attribute='path')| list | join('') }}" - section: "ol7_addons" - option: enabled - value: "1" - when: REPO_FILE.matched == 1 - -- name: Creating Oracle Linux Addons repository - yum_repository: - name: ol7_addons - description: "Oracle Linux $releasever Add ons ($basearch)" - baseurl: "https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/addons/$basearch/" - gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle - gpgcheck: yes - enabled: yes - owner: root - group: root - mode: 0644 - when: REPO_FILE.matched == 0