So I have a template that runs a PB like"
You could help us help you if you included some background.
Is the error you got associated with the “copy JSON” task?
How are you elevating privileges? There’s no “become: true” on the plays; are you specifying “–become” or “-b” on the command line? Does it run as you, or are you using a different become user? Is “nfs” a group or an individual host?
It might help to show the whole command line, and the output of
ansible-config dump --only-changed
could avoid us having to ask some follow-up questions, too.
Adding to Todd’s question … NFS often does NOT permit root so its permissions are converted to “nobody” unless otherwise specified (if this is really an NFS volume you are copying into).
Walter