I was able to create the file in both app servers, I also created it the file in each server separately. I get an error that stapp02 was not configured correctly
I also tested it by changing the playbook to test each server separately by only targeting each host
hosts: stapp02 and then hosts: stapp03
Only thing I could think of is that maybe the tasks wants the password in the inventory file, but I as best practice don’t place clear text passwords in the inventory file. I created an ssh key and then ssh-copy-id to each server and used ssh key authentication as you can see in the inventory file