e2ad6aad5a
* 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
22 lines
496 B
YAML
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
|