# An exception occurred during task execution.

**URL:** <https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [June 1, 2020, 6:42pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066 "2020-06-01T18:42:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 1, 2020, 6:42pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/1 "2020-06-01T18:42:42Z")

</div>

I am trying to deploy new vmware vcsa appliance from iso usibg ansible

below is playbook

---

<div class="post-metadata">

**Author:** ![Ompragash](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ompragash/32/9070_2.png) [@Ompragash](https://forum.ansible.com/u/Ompragash)\
**Post date:** [June 1, 2020, 6:57pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/2 "2020-06-01T18:57:47Z")

</div>

As you can see “IOError: [Errno 13] **Permission denied** : ‘/etc/fstab’”, you’re executing the playbook with an unprivileged user. Try running the playbook with privileged user or use **become** directive for TASK [Mount vCSA6.7 iso to /mnt/iso directory].

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 1, 2020, 8:22pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/3 "2020-06-01T20:22:59Z")

</div>

thanks now i get this

TASK [Creating a Directory to mount the iso file] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:6  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~tony && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299`” && echo ansible-tmp-1591038655.19-107209855175299=“`echo /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299`” ) && sleep 0’  
Using module file /home/tony/.local/lib/python2.7/site-packages/ansible/modules/files/file.py  
\<127.0.0.1\> PUT /home/tony/.ansible/tmp/ansible-local-14135\_sPOWT/tmp\_3K7YH TO /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299/AnsiballZ\_file.py  
\<127.0.0.1\> EXEC /bin/sh -c ‘chmod u+x /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299/ /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299/AnsiballZ\_file.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘sudo -H -S -n -u root /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-ccrzovesmfdvvyqstimtyqlawdjpeaxf ; /usr/bin/python /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299/AnsiballZ\_file.py’”’"’ && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-107209855175299/ \> /dev/null 2\>&1 && sleep 0’  
fatal: [127.0.0.1]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “sudo: a password is required\n”,  
“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 1, 2020, 8:36pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/4 "2020-06-01T20:36:46Z")

</div>

As you can see you ran into another privilege escalation issue.  
Since this is an important topic, rather than going down the trial and  
error path further, you are probably better of by reading the docs on  
privilege escalation:  
[https://docs.ansible.com/ansible/latest/user\_guide/become.html](https://docs.ansible.com/ansible/latest/user_guide/become.html) and try  
to grasp the concept behind it.  
It will be very useful.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 1, 2020, 10:45pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/5 "2020-06-01T22:45:32Z")

</div>

ok got it fixed but now its having issues on next copying task

TASK [Creating a Working Directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:21  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~tony && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181`” && echo ansible-tmp-1591051342.78-219752301038181=“`echo /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181`” ) && sleep 0’  
Using module file /home/tony/.local/lib/python2.7/site-packages/ansible/modules/files/file.py  
\<127.0.0.1\> PUT /home/tony/.ansible/tmp/ansible-local-14943p5pRVm/tmpg2MvtR TO /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181/AnsiballZ\_file.py  
\<127.0.0.1\> EXEC /bin/sh -c ‘chmod u+x /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181/ /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181/AnsiballZ\_file.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘sudo -H -S -p “[sudo via ansible, key=ymjggrenjkdverbptktaesjqbccosbfw] password:” -u root /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-ymjggrenjkdverbptktaesjqbccosbfw ; /usr/bin/python /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181/AnsiballZ\_file.py’”’"’ && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /home/tony/.ansible/tmp/ansible-tmp-1591051342.78-219752301038181/ \> /dev/null 2\>&1 && sleep 0’  
changed: [127.0.0.1] =\> {  
“changed”: true,  
“diff”: {  
“after”: {  
“mode”: “0777”,  
“path”: “/vcsa”,  
“state”: “directory”  
},  
“before”: {  
“mode”: “0755”,  
“path”: “/vcsa”,  
“state”: “absent”  
}  
},  
“gid”: 0,  
“group”: “root”,  
“invocation”: {  
“module\_args”: {  
“\_diff\_peek”: null,  
“\_original\_basename”: null,  
“access\_time”: null,  
“access\_time\_format”: “%Y%m%d%H%M.%S”,  
“attributes”: null,  
“backup”: null,  
“content”: null,  
“delimiter”: null,  
“directory\_mode”: null,  
“follow”: true,  
“force”: false,  
“group”: null,  
“mode”: 511,  
“modification\_time”: null,  
“modification\_time\_format”: “%Y%m%d%H%M.%S”,  
“owner”: null,  
“path”: “/vcsa”,  
“recurse”: false,  
“regexp”: null,  
“remote\_src”: null,  
“selevel”: null,  
“serole”: null,  
“setype”: null,  
“seuser”: null,  
“src”: null,  
“state”: “directory”,  
“unsafe\_writes”: null  
}  
},  
“mode”: “0777”,  
“owner”: “root”,  
“path”: “/vcsa”,  
“size”: 4096,  
“state”: “directory”,  
“uid”: 0  
}

TASK [Copying contents to working Directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:27  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~tony && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /home/tony/.ansible/tmp/ansible-tmp-1591051343.05-86141275342768`” && echo ansible-tmp-1591051343.05-86141275342768=“`echo /home/tony/.ansible/tmp/ansible-tmp-1591051343.05-86141275342768`” ) && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /home/tony/.ansible/tmp/ansible-tmp-1591051343.05-86141275342768/ \> /dev/null 2\>&1 && sleep 0’  
fatal: [127.0.0.1]: FAILED! =\> {  
“changed”: false,  
“msg”: “Could not find or access ‘/mnt/iso/\*’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote\_src option”  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
127.0.0.1 : ok=4 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 2, 2020, 4:53am UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/6 "2020-06-02T04:53:12Z")

</div>

There is no copy task in your playbook.  
There is a template task, which is meant for… templating files.

[https://docs.ansible.com/ansible/latest/modules/template\_module.html](https://docs.ansible.com/ansible/latest/modules/template_module.html)

Have a look at the copy module:  
[https://docs.ansible.com/ansible/latest/modules/copy\_module.html](https://docs.ansible.com/ansible/latest/modules/copy_module.html)

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 2, 2020, 1:04pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/7 "2020-06-02T13:04:54Z")

</div>

why do I keep failing on this copy task?

TASK [Copying contents to working Directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:28  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~tony && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /home/tony/.ansible/tmp/ansible-tmp-1591098693.86-2821013559691`” && echo ansible-tmp-1591098693.86-2821013559691=“`echo /home/tony/.ansible/tmp/ansible-tmp-1591098693.86-2821013559691`” ) && sleep 0’  
The full traceback is:  
Traceback (most recent call last):  
File “/home/tony/.local/lib/python2.7/site-packages/ansible/plugins/action/copy.py”, line 464, in run  
source = self.\_find\_needle(‘files’, source)  
File “/home/tony/.local/lib/python2.7/site-packages/ansible/plugins/action/ **init**.py”, line 1155, in \_find\_needle  
return self.\_loader.path\_dwim\_relative\_stack(path\_stack, dirname, needle)  
File “/home/tony/.local/lib/python2.7/site-packages/ansible/parsing/dataloader.py”, line 319, in path\_dwim\_relative\_stack  
raise AnsibleFileNotFound(file\_name=source, paths=[to\_native(p) for p in search])  
AnsibleFileNotFound: Could not find or access ‘/mnt/iso/\*’ on the Ansible Controller.  
If you are using a module and expect the file to exist on the remote, see the remote\_src option

fatal: [127.0.0.1]: FAILED! =\> {  
“changed”: false,  
“invocation”: {  
“dest”: “/vcsa”,  
“module\_args”: {  
“dest”: “/vcsa”,  
“src”: “/mnt/iso/_"  
},  
“src”: "/mnt/iso/_”  
},  
“msg”: “Could not find or access ‘/mnt/iso/\*’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote\_src option”  
}

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [June 2, 2020, 1:14pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/8 "2020-06-02T13:14:42Z")

</div>

> why do I keep failing on this copy task?
> 
> TASK [Copying contents to working Directory]  
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:28  
> \<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
> \<127.0.0.1\> EXEC /bin/sh -c 'echo ~tony && sleep 0'  
> \<127.0.0.1\> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo  
> /home/tony/.ansible/tmp/ansible-tmp-1591098693.86-2821013559691 `" && echo ansible-tmp-1591098693.86-2821013559691="`  
> echo /home/tony/.ansible/tmp/ansible-tmp-1591098693.86-2821013559691 `" ) && sleep 0'  
> The full traceback is:  
> Traceback (most recent call last):  
> File "/home/tony/.local/lib/python2.7/site-packages/ansible/plugins/action/copy.py", line 464, in run  
> source = self.\_find\_needle('files', source)  
> File "/home/tony/.local/lib/python2.7/site-packages/ansible/plugins/action/\_\_init\_\_.py", line 1155, in \_find\_needle  
> return self.\_loader.path\_dwim\_relative\_stack(path\_stack, dirname, needle)  
> File "/home/tony/.local/lib/python2.7/site-packages/ansible/parsing/dataloader.py", line 319, in path\_dwim\_relative\_stack  
> raise AnsibleFileNotFound(file\_name=source, paths=[to\_native(p) for p in search])  
> AnsibleFileNotFound: Could not find or access '/mnt/iso/\*' on the Ansible Controller.  
> If you are using a module and expect the file to exist on the remote, see the remote\_src option
> 
> fatal: [127.0.0.1]: FAILED! =\> {  
> "changed": false,  
> "invocation": {  
> "dest": "/vcsa",  
> "module\_args": {  
> "dest": "/vcsa",  
> "src": "/mnt/iso/\*"  
> },  
> "src": "/mnt/iso/\*"  
> },  
> "msg": "Could not find or access '/mnt/iso/\*' on the Ansible Controller.\nIf you are using a module and expect the  
> file to exist on the remote, see the remote\_src option"  
> }

Hello Tony,

the copy module doesn't expand wildcards, so you either need to lookup the files on the Ansible controller  
or use the directory path as src parameter:

[https://docs.ansible.com/ansible/latest/modules/copy\_module.html#parameter-src](https://docs.ansible.com/ansible/latest/modules/copy_module.html#parameter-src)

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 2, 2020, 1:58pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/9 "2020-06-02T13:58:54Z")

</div>

I am trying to use iso\_extract to copy the iso contents to a directory. can i do that? Still getting error

TASK [Copy contents to working directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:29  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tony  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~tony && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630`” && echo ansible-tmp-1591106235.25-162698201745630=“`echo /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630`” ) && sleep 0’  
Using module file /home/tony/.local/lib/python2.7/site-packages/ansible/modules/files/iso\_extract.py  
\<127.0.0.1\> PUT /home/tony/.ansible/tmp/ansible-local-18561PFMSaV/tmp7y39M1 TO /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630/AnsiballZ\_iso\_extract.py  
\<127.0.0.1\> EXEC /bin/sh -c ‘chmod u+x /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630/ /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630/AnsiballZ\_iso\_extract.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘/usr/bin/python /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630/AnsiballZ\_iso\_extract.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /home/tony/.ansible/tmp/ansible-tmp-1591106235.25-162698201745630/ \> /dev/null 2\>&1 && sleep 0’  
The full traceback is:  
WARNING: The below traceback may _not_ be related to the actual failure.  
File “/tmp/ansible\_iso\_extract\_payload\_IbRncr/ansible\_iso\_extract\_payload.zip/ansible/module\_utils/basic.py”, line 1562, in \_check\_required\_arguments  
check\_required\_arguments(spec, param)  
File “/tmp/ansible\_iso\_extract\_payload\_IbRncr/ansible\_iso\_extract\_payload.zip/ansible/module\_utils/common/validation.py”, line 193, in check\_required\_arguments  
raise TypeError(to\_native(msg))

fatal: [127.0.0.1]: FAILED! =\> {  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“dest”: “/vcsa”,  
“force”: true,  
“image”: “/home/temp/VMware-VCSA-all-6.7.0-16046470.iso”  
}  
},  
“msg”: “missing required arguments: files”

name: Copy contents to working directory  
iso\_extract:  
image: /home/temp/VMware-VCSA-all-6.7.0-16046470.iso  
dest: /vcsa

# - name: deployment of vcsa

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 2, 2020, 2:20pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/10 "2020-06-02T14:20:49Z")

</div>

ok I got the copy to work.

instead of copying, cant I just run vcsa-deply directory from mnt/iso?

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 2, 2020, 2:54pm UTC](https://forum.ansible.com/t/an-exception-occurred-during-task-execution/33066/11 "2020-06-02T14:54:26Z")

</div>

ok got it working now
