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
This commit is contained in:
MarkusTeufelberger
2019-02-11 23:04:27 +01:00
committed by Kubernetes Prow Robot
parent 038a2eb862
commit e2ad6aad5a
9 changed files with 94 additions and 64 deletions

View File

@@ -1,6 +1,5 @@
---
- name: Bootstrap | Check if bootstrap is needed
- name: Check if bootstrap is needed
raw: which "{{ item }}"
register: need_bootstrap
failed_when: false
@@ -12,6 +11,7 @@
- name: Install python on fedora
raw: "dnf install --assumeyes --quiet python"
become: true
environment: {}
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
@@ -19,3 +19,4 @@
dnf:
name: libselinux-python
state: present
become: true