Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you access a list of ansible_variables?

Answer Posted / Prashant Parashar

To access a list of ansible_variables, you can use the setup module in an Ansible playbook. By running the following command: - name: Display variables hosts: all tasks: - debug: var=ansible_facts.ansible_all_hosts

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it unsafe to bulk-set task arguments from a variable?

3


How can I set the path or any other environment variable for a task or entire playbook?

2


Can you build your own modules with ansible?

3


What is ansible role and how are they different from the playbook?

3


What is ansible role?

3


How do I copy files recursively onto a target host?

2


How can one interpolate variables or dynamic variable names?

2


How to keep secret data in playbook?

2


Is ansible is an open source tool?

3


Where does the configuration file live and what can I configure in it?

4


Why is ‘{{ }}’ notation used?

3


What are the different components of ansible? Explain ansible architecture.

3


Write a playbook to create a backup of a file in the remote servers before copy.

2


Talk about ansible architecture.

3


Compare ansible vs puppet?

3