2018-09-20 01:57:20 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
- 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
|
2018-09-20 21:45:15 +08:00
|
|
|
raw: "dnf install --assumeyes --quiet python"
|
2018-10-11 15:45:00 +08:00
|
|
|
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
2018-09-20 01:57:20 +08:00
|
|
|
|
|
|
|
- name: Install required python packages
|
|
|
|
dnf:
|
|
|
|
name: libselinux-python
|
|
|
|
state: present
|