Ansible: fix the wrong module and mode for vpp_device.yaml in cleanup role 46/28046/4
authorJieqiang Wang <jieqiang.wang@arm.com>
Tue, 9 Jun 2020 11:29:26 +0000 (11:29 +0000)
committerJieqiang Wang <Jieqiang.Wang@arm.com>
Tue, 1 Sep 2020 02:55:47 +0000 (02:55 +0000)
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>
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml

index 5b7713a..f5e6ea5 100644 (file)
@@ -2,12 +2,12 @@
 # file: roles/cleanup/tasks/vpp_device.yaml
 
 - name: Reset vpp_device binary
 # 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'
    src: 'files/reset_vppdevice.sh'
    dest: '/usr/local/bin'
    owner: 'root'
    group: 'root'
-   mode: '644'
+   mode: '744'
   tags: reset-sriov
 
 - name: Reset vpp_device
   tags: reset-sriov
 
 - name: Reset vpp_device