Closed jemrobinson closed 1 week ago
Ansible docs on using variables.
The best option for us is probably to write the variables as YAML or JSON and upload that to the desired state blob as something like vars/pulumi_vars.yaml
.
In the playbook we can then do
- hosts: all
vars_files:
- vars/pulumi_vars.yaml
:white_check_mark: Checklist
:strawberry: Suggested change
We currently expand our cloud-init file with a local of instance-specific variables. It would be better to pass these to Ansible for expansion in templates.
:steam_locomotive: How could this be done?
Not sure on the best way to pass variables to the Ansible playbook. @JimMadge might have thoughts.