From 8c978370a123dccc0b93ee9bd2ba46f8167a2cc2 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Tue, 15 Aug 2017 11:40:26 +0800 Subject: Support offline deployment for nosdn no feature scenario JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue --- .../ansible/roles/config-controller/tasks/Ubuntu.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'deploy/adapters/ansible/roles/config-controller/tasks/Ubuntu.yml') diff --git a/deploy/adapters/ansible/roles/config-controller/tasks/Ubuntu.yml b/deploy/adapters/ansible/roles/config-controller/tasks/Ubuntu.yml index e3b467cf..c45980f7 100644 --- a/deploy/adapters/ansible/roles/config-controller/tasks/Ubuntu.yml +++ b/deploy/adapters/ansible/roles/config-controller/tasks/Ubuntu.yml @@ -32,3 +32,15 @@ src: sources.list.official dest: /etc/apt/sources.list when: checkresult.rc != 0 + +- name: change sources list(apt) + template: + src: sources.list.offline + dest: /etc/apt/sources.list + when: offline_deployment is defined and offline_deployment == "Enable" + +- name: add apt.conf + copy: + src: apt.conf + dest: /etc/apt/apt.conf + when: offline_deployment is defined and offline_deployment == "Enable" -- cgit 1.2.3-korg