Hi team , How to pass the PULUMI_ACCESS_TOKEN in a...
# general
l
Hi team , How to pass the PULUMI_ACCESS_TOKEN in ansible playbook, so that when i run playbook it will not ask the PULUMI_CONFIG_PASSPHARSE
e
PULUMI_ACCESS_TOKEN is for authenticating to the pulumi service PULUMI_CONFIG_PASSPHARSE is for setting passphrase secrets provider, i.e. not the service. While you can use the service for state but not secrets it's unusual. You probably only mean to set one of these.
l
How to set any one of these in ansible because I am trying to store the pulumi output using shell in ansible during the execution of playbook it's failing. It's showing as password required as error
e
Same way you'd set any other envvar in ansible, https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_environment.html. Nothing special about them, they're just normal environment variables.
l
Thanks let me take a look and to you
@echoing-dinner-19531 I am configured ansible inside pulumi. while running pulumi up instance is creating and when coming to ansible playbook, in CLI I cannot see the output of module
e
Using Command? You need to print the stdout/stderr result from it, the command resource doesn't print by default
l
Yes