mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Install python-pip on first master
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
- name: Install pip
|
||||
action:
|
||||
module: "{{ ansible_pkg_mgr }}"
|
||||
name: "python-pip"
|
||||
state: latest
|
||||
when: ansible_os_family != "CoreOS" and kpm_packages | length > 0
|
||||
|
||||
- name: install kpm
|
||||
pip: name=kpm state=latest
|
||||
pip:
|
||||
name: "kpm"
|
||||
state: "latest"
|
||||
when: kpm_packages | length > 0
|
||||
|
||||
- name: manage kubernetes applications
|
||||
kpm:
|
||||
@@ -11,3 +21,5 @@
|
||||
name: "{{item.name}}"
|
||||
with_items: "{{kpm_packages}}"
|
||||
register: kpmresults
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
|
||||
|
||||
Reference in New Issue
Block a user