mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-24 06:26:04 -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
|
||||
Reference in New Issue
Block a user