From 0f3788b97bb00e4adcb10c33f3c4c28cdb0dc855 Mon Sep 17 00:00:00 2001 From: Jack Ivanov <17044561+jackivanov@users.noreply.github.com> Date: Mon, 26 Aug 2019 18:43:31 +0200 Subject: [PATCH] yaml syntax fix --- roles/cloud-ec2/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/cloud-ec2/tasks/main.yml b/roles/cloud-ec2/tasks/main.yml index eab6259..674705e 100644 --- a/roles/cloud-ec2/tasks/main.yml +++ b/roles/cloud-ec2/tasks/main.yml @@ -15,9 +15,9 @@ name: "ubuntu/images/hvm-ssd/{{ cloud_providers.ec2.image.name }}-amd64-server-*" register: ami_search - - name: Set the ami id as a fact - set_fact: - ami_image: "{{ (ami_search.images | sort(attribute='creation_date') | last)['image_id'] }}" +- name: Set the ami id as a fact + set_fact: + ami_image: "{{ (ami_search.images | sort(attribute='creation_date') | last)['image_id'] }}" - name: Deploy the stack import_tasks: cloudformation.yml