Why Do I Receive Permission Denied Errors when Using lineinfile or blockinfile Modules with Ansible Engine?

Solution Verified - Updated -

Issue

  • Using lineinfile or blockinfile with an underprivileged user in a directory without write permissions results in ERRNO 13: Permission Denied

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