2018-07-20 14:56:38 +00:00
|
|
|
---
|
2019-02-11 20:08:53 +00:00
|
|
|
- name: Copy OCI RBAC Manifest
|
|
|
|
copy:
|
|
|
|
src: "oci-rbac.yml"
|
|
|
|
dest: "{{ kube_config_dir }}/oci-rbac.yml"
|
2018-07-20 14:56:38 +00:00
|
|
|
when:
|
2019-02-11 20:08:53 +00:00
|
|
|
- cloud_provider is defined
|
|
|
|
- cloud_provider == 'oci'
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|
2018-07-20 14:56:38 +00:00
|
|
|
|
2019-02-11 20:08:53 +00:00
|
|
|
- name: Apply OCI RBAC
|
2018-07-20 14:56:38 +00:00
|
|
|
kube:
|
|
|
|
kubectl: "{{bin_dir}}/kubectl"
|
2019-02-11 20:08:53 +00:00
|
|
|
filename: "{{ kube_config_dir }}/oci-rbac.yml"
|
2018-07-20 14:56:38 +00:00
|
|
|
when:
|
2019-02-11 20:08:53 +00:00
|
|
|
- cloud_provider is defined
|
|
|
|
- cloud_provider == 'oci'
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|