Ansible - if current host in group

Moki Lv6
1
2
- debug: 'asdfasdf'
when: inventory_hostname in groups['my_group']
On this page
Ansible - if current host in group