Separate kubelet support packages

Debian has no libxtables11 package
Libxtables11 only for ubuntu while libxtables12 for debian

Change-Id: I258bea9869d2126295d080ef9d00800b83161cc3
This commit is contained in:
Zhangfei Gao 2018-06-21 22:58:45 +08:00 committed by Tin Lam
parent 5ae782ff52
commit 2481767744

@ -10,7 +10,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: ubuntu | installing kubelet support packages
- name: ubuntu or debian | installing kubelet support packages
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
apt:
name: "{{item}}"
@ -23,9 +23,24 @@
- libmnl0
- libnfnetlink0
- libwrap0
- libxtables11
- socat
- name: ubuntu | installing kubelet support packages
when: ansible_distribution == 'Ubuntu'
apt:
name: "{{item}}"
state: installed
with_items:
- libxtables11
- name: debian | installing kubelet support packages
when: ansible_distribution == 'Debian'
apt:
name: "{{item}}"
state: installed
with_items:
- libxtables12
- name: centos | installing kubelet support packages
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
yum: