mirror of
https://github.com/openshift/openshift-ansible-contrib.git
synced 2026-02-05 09:45:58 +01:00
@@ -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:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"Statement": [
|
||||
{
|
||||
"Action": [
|
||||
"ec2:DescribeVolumes",
|
||||
"ec2:DescribeVolume*",
|
||||
"ec2:CreateVolume",
|
||||
"ec2:CreateTags",
|
||||
"ec2:DescribeInstances",
|
||||
|
||||
Reference in New Issue
Block a user