mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-16 13:57:41 -02:30
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:
committed by
Kubernetes Prow Robot
parent
038a2eb862
commit
e2ad6aad5a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user