How to Secure Ansible playbook

I need to encrypt my playbook, so once i deploy it to customer environment, they cannot edit or read my file.

I have tired ansible-vault, but for this we need to save password in text file, so ultimately customer can decrypt my source code using that.

I am a java developer, in java we can convert human readable source code to machine readable byte code and deploy to customer environment.
so how to do this kind in ansible?

So your customer has access to the playbooks and vault passwords?

Actually we don’t want to expose, our code except developers.
we have separate team (external to our company) to execute our code in customer environment. and we don’t want to show our code to them.

Hello,

as far as i know, no tool is provided to obfuscate ansible playbooks.
I can suggest you to publish your work on an instance of AWX and allow
the external team to run only. Via AWX they have no access to source
code of playbooks.

Luca

Thanks, hope this would solve my issue.