aws.yml 716 B

1234567891011121314151617
  1. ---
  2. - when: openshift_cluster_autoscaler_cloud_provider == 'aws'
  3. block:
  4. - name: laydown the aws-credentials
  5. template:
  6. src: aws-creds.j2
  7. dest: "{{ openshift_cluster_autoscaler_template_location }}/{{ openshift_cluster_autoscaler_aws_creds_name }}"
  8. when: openshift_cluster_autoscaler_state == 'present'
  9. - name: create the aws creds secret
  10. oc_secret:
  11. state: "{{ openshift_cluster_autoscaler_state }}"
  12. name: "{{ openshift_cluster_autoscaler_aws_secret_name }}"
  13. namespace: "{{ openshift_cluster_autoscaler_namespace }}"
  14. files:
  15. - name: creds
  16. path: "{{ openshift_cluster_autoscaler_template_location }}/{{ openshift_cluster_autoscaler_aws_creds_name }}"