mirror of https://github.com/easzlab/kubeasz.git
增加支持离线安装ubuntu1804基础软件
parent
86acf0b1c4
commit
b4874448be
|
@ -14,6 +14,18 @@
|
|||
when: ansible_distribution_release == "xenial"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 chrony_bionic 离线包
|
||||
copy:
|
||||
src: "{{ base_dir }}/down/packages/chrony_bionic.tar.gz"
|
||||
dest: "/opt/kube/packages/chrony/chrony_bionic.tar.gz"
|
||||
|
||||
- name: 安装 chrony_bionic 离线包
|
||||
shell: 'cd /opt/kube/packages/chrony && tar zxf chrony_bionic.tar.gz && \
|
||||
dpkg -i *.deb > /tmp/install_chrony.log 2>&1'
|
||||
when: ansible_distribution_release == "bionic"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 chrony_centos7 离线包
|
||||
copy:
|
||||
|
|
|
@ -14,6 +14,18 @@
|
|||
when: ansible_distribution_release == "xenial"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 haproxy_bionic 离线包
|
||||
copy:
|
||||
src: "{{ base_dir }}/down/packages/haproxy_bionic.tar.gz"
|
||||
dest: "/opt/kube/packages/haproxy/haproxy_bionic.tar.gz"
|
||||
|
||||
- name: 安装 haproxy_bionic 离线包
|
||||
shell: 'cd /opt/kube/packages/haproxy && tar zxf haproxy_bionic.tar.gz && \
|
||||
dpkg -i *.deb > /tmp/install_haproxy.log 2>&1'
|
||||
when: ansible_distribution_release == "bionic"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 haproxy_centos7 离线包
|
||||
copy:
|
||||
|
@ -44,6 +56,18 @@
|
|||
when: ansible_distribution_release == "xenial"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 keepalived_bionic 离线包
|
||||
copy:
|
||||
src: "{{ base_dir }}/down/packages/keepalived_bionic.tar.gz"
|
||||
dest: "/opt/kube/packages/keepalived/keepalived_bionic.tar.gz"
|
||||
|
||||
- name: 安装 keepalived_bionic 离线包
|
||||
shell: 'cd /opt/kube/packages/keepalived && tar zxf keepalived_bionic.tar.gz && \
|
||||
dpkg -i *.deb > /tmp/install_keepalived.log 2>&1'
|
||||
when: ansible_distribution_release == "bionic"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 keepalived_centos7 离线包
|
||||
copy:
|
||||
|
|
|
@ -14,6 +14,18 @@
|
|||
when: ansible_distribution_release == "xenial"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 haproxy_bionic 离线包
|
||||
copy:
|
||||
src: "{{ base_dir }}/down/packages/haproxy_bionic.tar.gz"
|
||||
dest: "/opt/kube/packages/haproxy/haproxy_bionic.tar.gz"
|
||||
|
||||
- name: 安装 haproxy_bionic 离线包
|
||||
shell: 'cd /opt/kube/packages/haproxy && tar zxf haproxy_bionic.tar.gz && \
|
||||
dpkg -i *.deb > /tmp/install_haproxy.log 2>&1'
|
||||
when: ansible_distribution_release == "bionic"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 haproxy_centos7 离线包
|
||||
copy:
|
||||
|
|
|
@ -19,6 +19,23 @@
|
|||
when: ansible_distribution_release == "xenial"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 basic_bionic 离线包
|
||||
copy:
|
||||
src: "{{ base_dir }}/down/packages/basic_bionic.tar.gz"
|
||||
dest: "/opt/kube/packages/basic/basic_bionic.tar.gz"
|
||||
|
||||
# 离线安装包可能需要安装多次才能成功
|
||||
- name: 安装 basic_bionic 离线包
|
||||
shell: 'cd /opt/kube/packages/basic && tar zxf basic_bionic.tar.gz && \
|
||||
dpkg -i *.deb > /tmp/install_basic.log 2>&1'
|
||||
register: install_info
|
||||
until: not install_info.failed
|
||||
retries: 3
|
||||
delay: 1
|
||||
when: ansible_distribution_release == "bionic"
|
||||
ignore_errors: true
|
||||
|
||||
- block:
|
||||
- name: 分发 basic_centos7 离线包
|
||||
copy:
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
- lxd-client
|
||||
- lxcfs
|
||||
- lxc-common
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
ignore_errors: true
|
||||
|
||||
# Ubuntu 安装基础软件包
|
||||
|
|
Loading…
Reference in New Issue