mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
Install python-httplib2 required packaged
This commit is contained in:
@@ -15,3 +15,9 @@
|
|||||||
|
|
||||||
- name: Create etcd2 binary symlink
|
- name: Create etcd2 binary symlink
|
||||||
file: src=/usr/local/bin/etcd dest=/usr/local/bin/etcd2 state=link
|
file: src=/usr/local/bin/etcd dest=/usr/local/bin/etcd2 state=link
|
||||||
|
|
||||||
|
- name: install required python module 'httplib2'
|
||||||
|
apt:
|
||||||
|
name: "python-httplib2"
|
||||||
|
state: present
|
||||||
|
when: inventory_hostname == groups['kube-master'][0] or inventory_hostname == groups['etcd'][0]
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
- "{{ kube_cert_dir }}"
|
- "{{ kube_cert_dir }}"
|
||||||
- "{{ kube_users_dir }}"
|
- "{{ kube_users_dir }}"
|
||||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||||
|
when: inventory_hostname != "{{ groups['kube-master'][0] }}"
|
||||||
|
|
||||||
# Write manifests
|
# Write manifests
|
||||||
- name: Write kube-apiserver manifest
|
- name: Write kube-apiserver manifest
|
||||||
@@ -48,12 +49,6 @@
|
|||||||
port: "{{kube_apiserver_insecure_port}}"
|
port: "{{kube_apiserver_insecure_port}}"
|
||||||
delay: 10
|
delay: 10
|
||||||
|
|
||||||
- name: install required python module 'httplib2'
|
|
||||||
apt:
|
|
||||||
name: "python-httplib2"
|
|
||||||
state: present
|
|
||||||
when: inventory_hostname == groups['kube-master'][0]
|
|
||||||
|
|
||||||
- name: Create 'kube-system' namespace
|
- name: Create 'kube-system' namespace
|
||||||
uri:
|
uri:
|
||||||
url: http://127.0.0.1:{{ kube_apiserver_insecure_port }}/api/v1/namespaces
|
url: http://127.0.0.1:{{ kube_apiserver_insecure_port }}/api/v1/namespaces
|
||||||
|
|||||||
Reference in New Issue
Block a user