https://pulumi.com logo
#general
Title
# general
l

lemon-ambulance-1111

11/22/2023, 2:50 PM
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

echoing-dinner-19531

11/22/2023, 11:03 PM
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

lemon-ambulance-1111

11/23/2023, 1:07 AM
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

echoing-dinner-19531

11/24/2023, 11:00 AM
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

lemon-ambulance-1111

11/24/2023, 11:02 AM
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

echoing-dinner-19531

11/24/2023, 1:02 PM
Using Command? You need to print the stdout/stderr result from it, the command resource doesn't print by default
l

lemon-ambulance-1111

11/24/2023, 1:02 PM
Yes