Why Do I Get "[Errno 2] No such file or directory" with Ansible while the Command Works from Command line?

Solution Verified - Updated -

Issue

Receiving a no such file or directory error when using shell, command, raw or validate with lineinfile

Environment

Ansible Engine

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In