Browse Source

Merge pull request #7228 from joelddiaz/ami_detection

skip search for an ami if openshift_aws_ami_map provides one
Kenny Woodson 7 years ago
parent
commit
c54f9263e6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      roles/openshift_aws/tasks/build_node_group.yml

+ 3 - 1
roles/openshift_aws/tasks/build_node_group.yml

@@ -2,7 +2,9 @@
 # When openshift_aws_use_custom_ami is '' then
 # we retrieve the latest build AMI.
 # Then set openshift_aws_ami to the ami.
-- when: openshift_aws_ami == ''
+- when:
+  - openshift_aws_ami == ''
+  - openshift_aws_node_group.group not in openshift_aws_ami_map
   block:
   - name: fetch recently created AMI
     ec2_ami_find: