mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
Support Fedora 28
This commit is contained in:
20
roles/bootstrap-os/tasks/bootstrap-fedora.yml
Normal file
20
roles/bootstrap-os/tasks/bootstrap-fedora.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Bootstrap | Check if bootstrap is needed
|
||||
raw: which "{{ item }}"
|
||||
register: need_bootstrap
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
with_items:
|
||||
- python
|
||||
tags: facts
|
||||
|
||||
- name: Install python on fedora
|
||||
raw: "dnf install --assumeyes --quiet {{ item['item'] }}"
|
||||
when: item['rc'] != 0
|
||||
loop: "{{ need_bootstrap['results'] }}"
|
||||
|
||||
- name: Install required python packages
|
||||
dnf:
|
||||
name: libselinux-python
|
||||
state: present
|
||||
@@ -8,6 +8,9 @@
|
||||
- import_tasks: bootstrap-coreos.yml
|
||||
when: bootstrap_os == "coreos"
|
||||
|
||||
- import_tasks: bootstrap-fedora.yml
|
||||
when: bootstrap_os == "fedora"
|
||||
|
||||
- import_tasks: bootstrap-centos.yml
|
||||
when: bootstrap_os == "centos"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user