Ansible for network automation

Hi Team,

When I am using shell module to access remote device and running commands on device using shell , giving me error "failed to resolve remote temporary directory from ansible-tmp-…

Please anyone help me on same
Regards
Vinod

There isn’t much to go on from this post, but if you’re trying to do a shell operation on a network device like a router or switch, the device probably does not have enough of an OS to support what shell needs. You should look for modules that are specific towards your hardware and vendor use-case.

1 Like

Thank you for your response
But earlier my playbook was working fine, but after some os upgrade on the jump server I am having the issues

Please find attached error screenshot

As we’re not diviner, let us know what your playbook look like if you need proper help :slight_smile:

3 Likes

I’m not sure what the reason would be to paste the error message into a word document and then take a picture of your computer screen with your phone’s camera, but if you want people to help you, you need to make it easy on them to do so.

Please take the time to post the actual error message in here, and use the backticks to make it readable for others (it’d also be good to run your playbook in verbose mode for extra info, removing any sensitive data before posting). It would also make things easier for people to understand what’s going on if you pasted your playbook in here. It would also be helpful if you would explain your network topology since it seems like you’re using a jump server.

You mention it worked “earlier” but then an OS upgrade happened. We don’t work at your company, so we can’t really use this information to any effect. Maybe the OS upgrade had something to do with it, but you already suspected that. What have you done to troubleshoot the issue on your side? Have you tried running that failing command you pasted into the word doc on your computer screen on the target machine (or maybe the jump server)?

1 Like