c12s-kubespray/roles/bootstrap-os/tasks/bootstrap-fedora.yml
MarkusTeufelberger e2ad6aad5a bootstrap: rework role (#4045)
* bootstrap: rework role

* support being called from a non-root user
* run some commands in check mode
* unify spelling/task names

* bootstrap: fix wording of comments for check_mode: false

* bootstrap: remove setup-pipelining task
2019-02-11 14:04:27 -08:00

22 lines
496 B
YAML

---
- name: Check if bootstrap is needed
raw: which "{{ item }}"
register: need_bootstrap
failed_when: false
changed_when: false
with_items:
- python
environment: {}
tags: facts
- name: Install python on fedora
raw: "dnf install --assumeyes --quiet python"
become: true
environment: {}
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
- name: Install required python packages
dnf:
name: libselinux-python
state: present
become: true