summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/tasks
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2018-05-03 10:38:44 +0800
committerwutianwei <wutianwei1@huawei.com>2018-05-07 18:22:15 +0800
commit68a15541846c851b3309c014b0e28fa8502908c4 (patch)
tree80c041586ab82360dafa9536f84caaaf5c2708f9 /deploy/adapters/ansible/roles/config-osa/tasks
parentd7156c0b772ada65ff3d094bd70814bf5b0cb4e7 (diff)
add the command "rm /etc/resolve.conf" in cache_prep_commands
Change-Id: I89b15e7e200d37ac5d44cfee974f0f1c63981625 Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/tasks')
-rwxr-xr-xdeploy/adapters/ansible/roles/config-osa/tasks/main.yml13
1 files changed, 13 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 74d930e2..766043d5 100755
--- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml
@@ -362,6 +362,19 @@
insertafter: "^- include: os-trove"
line: "- include: os-tacker-install.yml"
+- name: rm command "rm -f /etc/resolv.conf" in cache_prep_commands
+ lineinfile:
+ dest: /etc/ansible/roles/lxc_hosts/vars/ubuntu-16.04.yml
+ regexp: 'rm -f /etc/resolv.conf$'
+ line: ' echo "ok"'
+ backrefs: 'yes'
+
+- name: add command "rm /etc/resolv.conf || true" in cache_prep_commands
+ lineinfile:
+ dest: /etc/ansible/roles/lxc_hosts/vars/ubuntu-16.04.yml
+ insertafter: '^ cache_prep_commands:'
+ line: ' rm /etc/resolv.conf || true'
+
- name: add variables file of tacker for centos
copy:
src: redhat-7.yml