VMware Cloud Community
xian_
Expert
Expert
Jump to solution

vRA8 ansible hostVariables

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/

Reply
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

Reply
0 Kudos
2 Replies
Qlik_USJ
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
xian_
Expert
Expert
Jump to solution

Resolved in 8.1

Reply
0 Kudos