From d7b0212f4d4ba4d441cf0e7fe56d94e263614bbc Mon Sep 17 00:00:00 2001 From: jiang_gw Date: Tue, 3 Sep 2019 09:32:25 +0800 Subject: [PATCH] role deploy use pip install package netaddr --- roles/deploy/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/deploy/tasks/main.yml b/roles/deploy/tasks/main.yml index dd23388..628a4fa 100644 --- a/roles/deploy/tasks/main.yml +++ b/roles/deploy/tasks/main.yml @@ -131,3 +131,7 @@ - name: ansible 控制端创建 kubectl 软链接 file: src={{ base_dir }}/bin/kubectl dest=/usr/bin/kubectl state=link ignore_errors: true + +- name: pip install netaddr + pip: + name: netaddr