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