Fix LXC apt upgrade issue 65/64065/3
authorHarry Huang <huangxiangyu5@huawei.com>
Fri, 26 Oct 2018 10:34:04 +0000 (18:34 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Sat, 27 Oct 2018 02:34:56 +0000 (10:34 +0800)
JIRA: -

Change-Id: I9bf488e4d613d475e833a573635ea5a2ef56aeff
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/adapters/ansible/roles/config-osa/tasks/main.yml

index 6bb60f9..6f43e7f 100755 (executable)
     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