1
0
mirror of https://github.com/openshift/openshift-ansible-contrib.git synced 2026-02-05 09:45:58 +01:00

Merge pull request #1063 from mazzystr/master

Updates for AWS ref arch
This commit is contained in:
Chris Callegari
2018-07-25 11:52:02 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
- block:
- name: Fetch Red Hat Cloud Access ami
shell: aws ec2 describe-images \
--ouput=json \
--region "{{ aws_region }}" --owners 309956199498 | \
jq -r '.Images[] | [.Name,.ImageId] | @csv' | \
sed -e 's/\"//g' | \
@@ -26,7 +27,7 @@
debug:
msg: "{{ notice.split('\n') }}"
when: ec2ami_unformatted.changed
failed_when: "'ami-' not in ec2ami.stdout"
failed_when: ( ec2ami.stdout == "" ) or ( "'ami-' not in ec2ami.stdout" )
- name: 'Set fact: ec2ami'
set_fact:

View File

@@ -3,7 +3,7 @@
"Statement": [
{
"Action": [
"ec2:DescribeVolumes",
"ec2:DescribeVolume*",
"ec2:CreateVolume",
"ec2:CreateTags",
"ec2:DescribeInstances",