Playbook failing after providing become config

Posted on

I am trying to make a directory in the root directory of a server using the ansible playbook. I have setup the "become" args correctly. When I run the playbook with --ask-pass --ask-become-pass --become args, it fails to create a directory. The error says [Errno 13] Permission denied: b'/opt/dir'", "path": "/opt/dir"}