Instead of storing keys, passwords, environment and more in plain text here it comes Ansible Vault which is a great feature to use when you need to keep sensitive data encrypted such as pushing your keys to a remote repository.
There are several ways to encrypt your sensitive data using