If security groups were declared in the instance section, they should be applied when instances were created.
For example, how security groups should be declared is like below.
group_vars/all
examples:
images:
- name: "example_cirros"
url: "http://download.cirros-cloud.net/0.5.2/cirros-0.5.2-x86_64-disk.img"
instances:
- name: "cirros01"
flavor: "m1.tiny"
network: "private"
# Specify an image which created from.
image:
name: "example_cirros"
security_groups: # <- here
- permit_all # <- here
If security groups were declared in the instance section, they should be applied when instances were created. For example, how security groups should be declared is like below.
group_vars/all