Dec 1, 2019 in DevOps
Q: How you get the Inventory variables defined for the host?

1 Answer

0 votes
Dec 1, 2019

We need to use the following command

Ansible – m debug- a “var=hostvars[‘hostname’]” localhost(10.92.62.215)

Click here to read more about DevOps
Click here to read more about Insurance

Related questions

0 votes
Mar 3, 2020 in DevOps
...