ec2_group_module: No hosts matched

Hi,

I’m trying to run the sample as given here. I copied and pasted the yml file. Though when I run I receive “No hosts matched”.

Any ideas?

Thanks,
Josh

that example is not a complete playbook, just a task, try adding this on top:

- hosts: localhost
  gather_facts: false
  connection: local
  tasks:

< put example here indented so it is under tasks: