gce.yml 803 B

1234567891011121314151617181920212223
  1. ---
  2. # Work around ini_file create option in 2.2 which defaults to no
  3. - name: Create cloud config file
  4. file:
  5. dest: "{{ openshift.common.config_base }}/cloudprovider/gce.conf"
  6. state: touch
  7. mode: 0660
  8. owner: root
  9. group: root
  10. changed_when: false
  11. - name: Configure GCE cloud provider
  12. ini_file:
  13. dest: "{{ openshift.common.config_base }}/cloudprovider/gce.conf"
  14. section: Global
  15. option: "{{ item.key }}"
  16. value: "{{ item.value }}"
  17. with_items:
  18. - { key: 'project-id', value: '{{ openshift_gcp_project }}' }
  19. - { key: 'network-name', value: '{{ openshift_gcp_network_name }}' }
  20. - { key: 'node-tags', value: '{{ openshift_gcp_prefix }}ocp' }
  21. - { key: 'node-instance-prefix', value: '{{ openshift_gcp_prefix }}' }
  22. - { key: 'multizone', value: 'false' }