Environment variables in the Bash shell can be accessed or set using a C++ program. This is facilitated by the getnenv()
and putenv()
functions defined in the C/C++ stdlib.h
library. Environmental variable expansion is a great feature of a Linux shell as it enables programmers and users to rely on the environment settings of each user separately. C++ getenv()
will read all exported environmental variables and putenv()
will set existing or create new variables.
variables
Ansible Vault Tutorial
In previous tutorials we discussed Ansible, a great tool we can use for automation and provisioning. We talked about basic Ansible concepts, we saw some of the most used Ansible modules, how to manage variables and how to perform basic loops in playbooks; now it’s time to see how to protect sensitive information which sometimes may be needed to accomplish some tasks. In order to protect sensitive information when using Ansible, we encrypt them with Ansible Vault.