Hello, I want to make a code that will execute on all my webserver but some part of my webserver i want to execute only on a specific machine from the webserver list ot when that machine is also part of group of [mainws] or [secondaryws]
`
webservers:
1.1.1.1
2.2.2.2
mainws
1.1.1.1
secondary
2.2.2.2
`
`
-host webservers
tasks:
- name: execute task
…
when: >
host : IP or group or some varialbe
`
How can i write the when part in order to ran my task only on the mainws ?