Hi Deepak,
You're going to need a different opener for this can of worms, as Ansible
Vault is meant for protecting confidential information that needs to be
pushed out to the endpoint being configured and not for pulling information
back to the controller for encryption nor is it meant for encryption
in-place on the endpoint node.
So that the community can better help you, are to looking to encrypt log
files in place on the configured endpoint node (host, VM, container, etc.)
or are you looking to have the log files encrypted on the controller at the
end of the playbook run? (Or, perhaps, are they the same host?)
On Monday, March 11, 2024 at 5:06:21 AM UTC-4 Deepak B K wrote:
Hi All,
I need recommendation to use encryption and decryption of generated log
files during the playbook execution . I was going through ansible
documentation and I don't see any module except use of ansible-vault . I
appreciate your advise .
there is a module to decrypt the log file
- ansible.builtin.debug: msg="the value of foo.log is {{
lookup('ansible.builtin.unvault', '/etc/foo.log') | string | trim }}"
Thanks
Deepak
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f5a9e0ce-97d4-43ef-80c1-46d9c0de146dn%40googlegroups.com.