aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/tasks
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 06:06:28 +0000
commit15212e1ca1dda0da640dc7f9da14a89c5742fa04 (patch)
treecd29405a6e7e51f45a2fef8fd1e9ba03ee57eb5b /deploy/adapters/ansible/roles/config-osa/tasks
parentfe932d4225c645f3c67c504cc35f4318eaf7574b (diff)
Fix LXC apt upgrade issue
JIRA: - Change-Id: I9bf488e4d613d475e833a573635ea5a2ef56aeff Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit 5a4958ed29c471315c4b54f9a703ff43793688c5)
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/tasks')
-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