From: Jieqiang Wang Date: Tue, 9 Jun 2020 11:29:26 +0000 (+0000) Subject: Ansible: fix the wrong module and mode for vpp_device.yaml in cleanup role X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=8ce493fa0f0bc9fa178981ddd1e4a18fa39d6fb8 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 --- 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