mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Support for Oracle Linux (#3655)
Fixed Issue #1032 test case for OEL7 AIL with kubeadm Add packet CI stuff for oracle 7
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
cdf9a9f4fc
commit
728155a2a1
21
roles/bootstrap-os/tasks/bootstrap-oracle.yml
Normal file
21
roles/bootstrap-os/tasks/bootstrap-oracle.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: Download Oracle Linux public yum repo
|
||||
get_url:
|
||||
url: https://yum.oracle.com/public-yum-ol7.repo
|
||||
dest: /etc/yum.repos.d/public-yum-ol7.repo
|
||||
|
||||
- name: Enable Oracle Linux repo
|
||||
ini_file:
|
||||
dest: /etc/yum.repos.d/public-yum-ol7.repo
|
||||
section: "{{ item }}"
|
||||
option: enabled
|
||||
value: "1"
|
||||
with_items:
|
||||
- ol7_latest
|
||||
- ol7_addons
|
||||
- ol7_developer_EPEL
|
||||
|
||||
- name: Install packages requirements for bootstrap
|
||||
yum:
|
||||
name: container-selinux
|
||||
state: present
|
||||
@@ -25,6 +25,9 @@
|
||||
- include_tasks: bootstrap-opensuse.yml
|
||||
when: '"openSUSE" in os_release.stdout'
|
||||
|
||||
- include_tasks: bootstrap-oracle.yml
|
||||
when: '"Oracle" in os_release.stdout'
|
||||
|
||||
- name: Create remote_tmp for it is used by another module
|
||||
file:
|
||||
path: "{{ ansible_remote_tmp | default('~/.ansible/tmp') }}"
|
||||
|
||||
Reference in New Issue
Block a user