aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorJieqiang Wang <jieqiang.wang@arm.com>2020-06-09 11:29:26 +0000
committerJieqiang Wang <Jieqiang.Wang@arm.com>2020-09-01 02:55:47 +0000
commit8ce493fa0f0bc9fa178981ddd1e4a18fa39d6fb8 (patch)
tree483a3c7fcb1f000b6821a1e63698fe6f00d3fd33 /resources
parent0df5beab9e8a1667f2885ed390046a71b2bc6e4f (diff)
Ansible: fix the wrong module and mode for vpp_device.yaml in cleanup role
The src field for ansible template module used in vpp_device.yaml of cleanup role should be jinja2 format and the mode for script to be transfered to the remote host should be executable for the file owner. Fix this error by replacing the ansible template module with ansible copy module and setting the file permission to be 744. Change-Id: Ibf80b0c5bec77a13509122795a5b12b6faba2f8e Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml
index 5b7713a554..f5e6ea5488 100644
--- a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml
@@ -2,12 +2,12 @@
# file: roles/cleanup/tasks/vpp_device.yaml
- name: Reset vpp_device binary
- template:
+ copy:
src: 'files/reset_vppdevice.sh'
dest: '/usr/local/bin'
owner: 'root'
group: 'root'
- mode: '644'
+ mode: '744'
tags: reset-sriov
- name: Reset vpp_device