Description
I tried this play book and it show error No such file or directory.
[Error]
failed: [Node IP] => {"changed": true, "cmd": "/var/ossec/bin/manage_agents -f /home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent\n ", "delta": "0:00:00.013464", "end": "2019-04-30 19:03:50.257383", "item": "", "rc": 1, "start": "2019-04-30 19:03:50.243919"}
stderr: Failed.: No such file or directory
2019/04/30 19:03:50 manage_agents(1103): ERROR: Could not open file '/home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent' due to [(22)-(Invalid argument)].
stdout: Bulk load file: /home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent
Opening: [/home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent]
failed: [Node IP] => {"changed": true, "cmd": "/var/ossec/bin/manage_agents -f /home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent\n ", "delta": "0:00:00.011663", "end": "2019-04-30 19:03:50.418830", "item": "", "rc": 1, "start": "2019-04-30 19:03:50.407167"}
stderr: Failed.: No such file or directory
2019/04/30 19:03:50 manage_agents(1103): ERROR: Could not open file '/home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent' due to [(22)-(Invalid argument)].
stdout: Bulk load file: /home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent
Opening: [/home/ansible/ansible-ossec-agent-deploy-ossim/roles/ossec/tasks/add_agent]
FATAL: all hosts have already failed -- aborting