WIP: Temporary commit - molecule fails at `TASK [ssh : load inventory into JSON]`
There seems to be a persistent problem with the distribute-ssh-keys repo.
TASK [ssh : load inventory into JSON] ******************************************
task path: /home/aragorn/SKA/code/bifrost/roles/ssh/tasks/main.yml:3
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: aragorn
<localhost> EXEC /bin/sh -c 'echo ~aragorn && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/aragorn/.ansible/tmp `"&& mkdir /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822 && echo ansible-tmp-1594115660.2934742-14558-18506665389822="` echo /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822 `" ) && sleep 0'
Using module file /home/aragorn/SKA/code/bifrost/venv/lib/python3.6/site-packages/ansible/modules/commands/command.py
<localhost> PUT /home/aragorn/.ansible/tmp/ansible-local-30214243fbqct/tmpkh6xcrbk TO /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822/AnsiballZ_command.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822/ /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822/AnsiballZ_command.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/aragorn/SKA/code/bifrost/venv/bin/python3 /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822/AnsiballZ_command.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/aragorn/.ansible/tmp/ansible-tmp-1594115660.2934742-14558-18506665389822/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
File "/tmp/ansible_command_payload_qo0lhy99/ansible_command_payload.zip/ansible/modules/commands/command.py", line 278, in main
fatal: [ubuntu1804_bifrost]: FAILED! => {
"changed": true,
"invocation": {
"module_args": {
"_raw_params": "ansible-inventory -i inventory_ssh_keys --list",
"_uses_shell": false,
"argv": null,
"chdir": "./distribute-ssh-keys",
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "Unable to change directory before execution: [Errno 2] No such file or directory: b'/home/aragorn/SKA/code/bifrost/tests/molecule/default/distribute-ssh-keys'"
}
```