Browse Source

Run containerd related tasks on OracleLinux. (#7250)

pull/7248/head
petruha 3 years ago
committed by GitHub
parent
commit
fc8551bcba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. 4
      roles/container-engine/containerd/tasks/containerd_repo.yml
  2. 2
      roles/container-engine/containerd/tasks/main.yml

4
roles/container-engine/containerd/tasks/containerd_repo.yml

@ -25,8 +25,8 @@
dest: "{{ yum_repo_dir }}/containerd.repo"
when: ansible_distribution == "Fedora"
- name: Configure containerd repository on RedHat/CentOS
- name: Configure containerd repository on RedHat/OracleLinux/CentOS
template:
src: "rh_containerd.repo.j2"
dest: "{{ yum_repo_dir }}/containerd.repo"
when: ansible_distribution in ["CentOS","RedHat"]
when: ansible_distribution in ["CentOS", "OracleLinux", "RedHat"]

2
roles/container-engine/containerd/tasks/main.yml

@ -13,7 +13,7 @@
fail:
msg: "{{ ansible_distribution }} is not supported by containerd."
when:
- not ansible_distribution in ["CentOS","RedHat", "Ubuntu", "Debian", "Fedora"]
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora"]
- name: gather os specific variables
include_vars: "{{ item }}"

Loading…
Cancel
Save