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'
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][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:
|
2019-05-02 21:24:21 +00:00
|
|
|
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'
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|