aws.yml 725 B

12345678910111213141516171819
  1. ---
  2. - name: Configure AWS Cloud Provider Settings
  3. lineinfile:
  4. dest: /etc/sysconfig/{{ openshift_service_type }}-node
  5. regexp: "{{ item.regex }}"
  6. line: "{{ item.line }}"
  7. create: true
  8. with_items:
  9. - regex: '^AWS_ACCESS_KEY_ID='
  10. line: "AWS_ACCESS_KEY_ID={{ openshift_cloudprovider_aws_access_key | default('') }}"
  11. - regex: '^AWS_SECRET_ACCESS_KEY='
  12. line: "AWS_SECRET_ACCESS_KEY={{ openshift_cloudprovider_aws_secret_key | default('') }}"
  13. register: sys_env_update
  14. no_log: True
  15. when:
  16. - openshift_cloudprovider_kind is defined
  17. - openshift_cloudprovider_kind == 'aws'
  18. - openshift_cloudprovider_aws_access_key is defined
  19. - openshift_cloudprovider_aws_secret_key is defined