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