aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-10-26 18:34:04 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-10-27 10:34:56 +0800
commit5a4958ed29c471315c4b54f9a703ff43793688c5 (patch)
tree733e04a3b612b791408998c11ceb97fa89d9ec40 /deploy
parent41bdc69d9c6103d766889bc088c98791a7caf70b (diff)
Fix LXC apt upgrade issue
JIRA: - Change-Id: I9bf488e4d613d475e833a573635ea5a2ef56aeff Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
index 6bb60f92..6f43e7fd 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -363,6 +363,12 @@
insertafter: '^ cache_prep_commands:'
line: ' rm /etc/resolv.conf || true'
+- name: fix apt prompt issue
+ lineinfile:
+ dest: /etc/ansible/roles/lxc_hosts/vars/ubuntu-16.04.yml
+ state: absent
+ regexp: "apt-get upgrade -y"
+
- name: set pre-staged retry to 120
replace:
dest: /etc/ansible/roles/lxc_hosts/tasks/lxc_cache_preparation_systemd_new.yml