TASK [phantom : Copy Splunk SOAR to server] ****
[WARNING]: Error deleting remote temporary files (rc: 1, stderr: Could not
chdir to home directory /home/vagrant: Permission denied bash:
/home/vagrant/.bashrc: Permission denied })
changed: [ar-phantom-attack-range-key-pair-ar]
TASK [phantom : prepare phantom install script without apps] ***
fatal: [ar-phantom-attack-range-key-pair-ar]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"echo /home/vagrant/.ansible/tmp\"&& mkdir \"echo /home/vagrant/.ansible/tmp/ansible-tmp-1712746651.3498158-484253-99714747439301\" && echo ansible-tmp-1712746651.3498158-484253-99714747439301=\"echo /home/vagrant/.ansible/tmp/ansible-tmp-1712746651.3498158-484253-99714747439301\" ), exited with result 1", "unreachable": true}
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
2024-04-10 12:57:31,511 - ERROR - attack_range - vagrant failed to build
At a minimum, it is worth documenting the above two steps. I have yet to attend to the ansible issue above.
Following the documentation to setup dependencies for WSL results in an installation where the build step fails consistently:
A partial fix follows:
powershell.exe
is on the WSL path:Ensure vagrant wsl2 plugin is installed
Then attempt to destroy and re-build. However, this fails further in the build process:
TASK [phantom : Copy Splunk SOAR to server] **** [WARNING]: Error deleting remote temporary files (rc: 1, stderr: Could not chdir to home directory /home/vagrant: Permission denied bash: /home/vagrant/.bashrc: Permission denied }) changed: [ar-phantom-attack-range-key-pair-ar]
TASK [phantom : prepare phantom install script without apps] *** fatal: [ar-phantom-attack-range-key-pair-ar]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"
echo /home/vagrant/.ansible/tmp
\"&& mkdir \"echo /home/vagrant/.ansible/tmp/ansible-tmp-1712746651.3498158-484253-99714747439301
\" && echo ansible-tmp-1712746651.3498158-484253-99714747439301=\"echo /home/vagrant/.ansible/tmp/ansible-tmp-1712746651.3498158-484253-99714747439301
\" ), exited with result 1", "unreachable": true}PLAY RECAP ***** ar-phantom-attack-range-key-pair-ar : ok=2 changed=2 unreachable=1 failed=0 skipped=6 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again. 2024-04-10 12:57:31,511 - ERROR - attack_range - vagrant failed to build