tsuna-server / build-server-ansible

1 stars 0 forks source link

Security groups should be applied when instances are created if they were declared. #69

Closed TsutomuNakamura closed 2 years ago

TsutomuNakamura commented 2 years ago

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