---
- name: create /etc/origin/cloudprovider
  file:
    state: directory
    path: "{{ vsphere_conf_dir }}"

- name: create the vsphere.conf file
  template:
    src: "{{ role_path }}/templates/vsphere.conf.j2"
    dest: /etc/origin/cloudprovider/vsphere.conf
    owner: root
    group: root
    mode: 0644
