c12s-kubespray/roles/bootstrap-os/tasks/bootstrap-fedora.yml
2018-09-20 15:45:15 +02:00

19 lines
451 B
YAML

---
- 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 python"
when: "{{ need_bootstrap.results | map(attribute='rc') | sort | last | bool }}"
- name: Install required python packages
dnf:
name: libselinux-python
state: present