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"
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0640"
|
2018-07-20 22:56:38 +08:00
|
|
|
when:
|
2019-02-12 04:08:53 +08:00
|
|
|
- cloud_provider is defined
|
|
|
|
- cloud_provider == 'oci'
|
2021-03-24 08:26:05 +08:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][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'
|
2021-03-24 08:26:05 +08:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|