I am using NFS and permission is 777 only. I am getting /var/lib/awx getting permission error while writing the data through playbook in to my manual projects. Login to pod and able to create a folder and file manually. But writing content into manual projects folder by using playbook only getting error. I have faced the same issue in awx 13.0 version as well. But I modified the job settings (Enable job isolation off). It worked for me. But 23.6.0 Unable to find this settings . Could you please help me to fix this issue. Thanks
Code:
- name: Run the playbook in new dr environment
hosts: localhost
connection: local
tasks:- name: display the messages
debug:
msg: "Welcome to AWX DR " - name: Write the content into file
lineinfile:
path: /var/lib/awx/projects/testing/testfile.txt
line: “Welcome to DR”
create: yes
- name: display the messages
Error Message
TASK [Write the content into file] *********************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Error creating /var/lib/awx/projects/testing ([Errno 13] Permission denied: b’/var/lib/awx/projects/testing’)”}
With Regards,
Veera