diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-10-26 18:34:04 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-10-27 10:34:56 +0800 |
commit | 5a4958ed29c471315c4b54f9a703ff43793688c5 (patch) | |
tree | 733e04a3b612b791408998c11ceb97fa89d9ec40 /deploy | |
parent | 41bdc69d9c6103d766889bc088c98791a7caf70b (diff) |
Fix LXC apt upgrade issue
JIRA: -
Change-Id: I9bf488e4d613d475e833a573635ea5a2ef56aeff
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 6 |
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 |