mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Enable experimental modules when rpm-ostree version >= 2021.9 (#8202)
* Enable experimental modules when rpm-ostree version >= 2021.9 * cleanup code
This commit is contained in:
@@ -149,6 +149,13 @@
|
|||||||
- repo: "fedora-modular"
|
- repo: "fedora-modular"
|
||||||
section: "fedora-modular"
|
section: "fedora-modular"
|
||||||
|
|
||||||
|
- name: Enable CRI-O ex module
|
||||||
|
command: "rpm-ostree ex module enable cri-o:{{ crio_version }}"
|
||||||
|
become: true
|
||||||
|
when:
|
||||||
|
- is_ostree
|
||||||
|
- ostree_version is defined and ostree_version.stdout is version('2021.9', '>=')
|
||||||
|
|
||||||
- name: Enable CRI-O module
|
- name: Enable CRI-O module
|
||||||
command: "dnf -y module enable cri-o:{{ crio_version }}"
|
command: "dnf -y module enable cri-o:{{ crio_version }}"
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -11,6 +11,13 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
is_ostree: "{{ ostree.stat.exists }}"
|
is_ostree: "{{ ostree.stat.exists }}"
|
||||||
|
|
||||||
|
- name: get ostree version
|
||||||
|
shell: "set -o pipefail && rpm-ostree --version | awk -F\\' '/Version/{print $2}'"
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
register: ostree_version
|
||||||
|
when: is_ostree
|
||||||
|
|
||||||
- name: gather os specific variables
|
- name: gather os specific variables
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
|||||||
Reference in New Issue
Block a user