xian_
Expert
Expert

vRA8 ansible hostVariables

Jump to solution

I'm trying to get Ansible integration working with hostVariables. I copied the vendor sample but no luck, variables do not show up in inventory host vars.yaml

What am I missing?

hostVariables: |

        message: Hello ${env.requestedBy}

        project: ${env.projectName}

       

Other than that ansible works on the target machines.

Another (VRAC) example without the pipe after hostVariables, but does not work either for me: https://knotacoder.com/2019/11/27/vrealize-automation-cloud-ansible-enhancements/

0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
0 Kudos
2 Replies
Qlik_USJ
Contributor
Contributor

Hi!

Im having the same issue.

For us it worked on vra 8.0.1 and ansible 2.77 but after HF1 was applied it stopped working.

the files "vra_host_vars.yml" and "vra_user_host_vars.yml" is never created on the ansible controller.

0 Kudos
xian_
Expert
Expert
0 Kudos