Hi All,
Using Ansible, I want to set a variable inside a POD.
Any idea how do I do that?
The below 3 things failed:
docker_container:
namespace: consul
pod: consul-server-0
env:
X1: x2
kubernetes.core.k8s_exec:
namespace: consul
pod: consul-server-0
command: export CONSUL_HTTP_TOKEN=“x2”
kubernetes.core.k8s_exec:
namespace: consul
pod: consul-server-0
command: export CONSUL_HTTP_TOKEN="{{ decoded_bootstrap.stdout }}"