Open saiello opened 2 years ago
I think you can do this with built-in Ansible functionality.
We do things like set our SSL Password as an env var and then our playbooks look like this
ssl_password: "{{ lookup('ansible.builtin.env', 'SSL_PASSWORD') }}"
Right now we just have one playbook, but if we move to multiple playbooks then I'd probably extract that out to a vars
file in Ansible and import that file in to all of my playbooks.
Expected Behavior
Allow to define a default value from env var with the common configurations
Actual Behavior
Bootstap server configuration must be defined for each module separately even when is always the same.
Play to Reproduce the Problem