I have a playbook file containing below simple commands. ansible version 2.8.1 is installed on remote host.
Playbook file:
---
- name: Deploy accounts on AWS staging
gather_facts: False
hosts: Project_stage
roles:
- { role: stageRole }
Task file for role stageRole:
---
- name: Deploying WAR on EB
command: eb --version chdir=/opt/EB_accounts
Upon executing above playbook, i can see below exception with error message as "msg": "[Errno 2] No such file or directory",
Exception:
host_web02 (0, '', '')
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File "/**tmp/ansible_command_payload_ynqG_D/ansible_command_payload.zip/ansible/module_utils/basic.py**", line 2561, in run_command
cmd = subprocess.Popen(args, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception