diff options
author | wutianwei <wutianwei1@huawei.com> | 2018-03-02 11:55:27 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2018-03-02 11:55:27 +0800 |
commit | 33d470951351c0a56409400593bc363d7de765cc (patch) | |
tree | 629653fd82f32a98f7fdbb78fa451eb8094d063f /deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence | |
parent | d9c78464420c0e40beeca60e982d6f86f96509af (diff) |
move the update cache after role of setup-k8s-network
If don't setup network, the host cannot connect to the Internet on baremetal pod.
So we should update cache after setting the network.
Change-Id: Ief0eb2d82c67b0ace2cfb233b9792f6e009a1524
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence/tasks/main.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence/tasks/main.yml index e683a3fe..4f8ca005 100644 --- a/deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence/tasks/main.yml +++ b/deploy/adapters/ansible/kubernetes/roles/install-k8s-dependence/tasks/main.yml @@ -24,5 +24,6 @@ apt: pkg: "{{ item }}" state: "present" + update_cache: 'yes' with_items: "{{ packages }}" when: ansible_os_family == 'Debian' |