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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content