Ask Your Question

Can the host specified by vars_prompt be shared across multiple plays?

asked 2021-04-20 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-01 11:00:00 +0000

david gravatar image

Yes, the host specified by vars_prompt can be shared across multiple plays by setting the host as a variable in the inventory file or as a global variable in the playbook. Once the host is set as a variable, it can be reused across different plays in the same playbook or even across different playbooks. This allows for greater flexibility and reusability in the Ansible playbook.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2021-04-20 11:00:00 +0000

Seen: 1 times

Last updated: Feb 01 '22