Created
December 18, 2018 11:41
-
-
Save markuman/1f0f6dd0e02bf0e2deeb5314125e2641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: create empty security group for ECS Instances | |
ec2_group: | |
name: ECS_ACCESS | |
description: access ECS Instances | |
region: eu-central-1 | |
state: present | |
vpc_id: vpc-d04703b8 | |
register: ecsinstance | |
- name: print ecs instance security group id | |
command: echo "security group id for ecs instances " "{{ item }}" | |
with_items: "{{ ecsinstance.group_id }}" | |
- set_fact: | |
ecs_sg: "{{ item }}" | |
cacheable: true | |
with_items: "{{ ecsinstance.group_id }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment