Skip to content

vishnus17/Ansible-URI-module-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ansible-URI-module-example

Specific host conditions

  1. Print task on specific host usin when variable.

  2. Run task on specific host and print it using delegate_to module and when variable.

Why not using delegate_to alone?

If you use delegate_to module alone, it will run the task in specified host but if you print it without using when variable, it will run on all hosts. This is because the print task is seperate and will run on all hosts unless specified.

About

Ansible playbook to run task on specific hosts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published