k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
811 B
23 lines
811 B
---
|
|
- name: Get OCI ClusterRole, and ClusterRoleBinding
|
|
get_url:
|
|
url: "https://raw.githubusercontent.com/oracle/oci-cloud-controller-manager/{{oci_cloud_controller_version}}/manifests/oci-cloud-controller-manager-rbac.yaml"
|
|
dest: "/tmp/oci-cloud-controller-manager-rbac.yaml"
|
|
force: yes
|
|
register: result
|
|
until: "'OK' in result.msg"
|
|
retries: 4
|
|
delay: "{{ retry_stagger | random + 3 }}"
|
|
when:
|
|
- cloud_provider is defined
|
|
- cloud_provider == 'oci'
|
|
- inventory_hostname == groups['kube-master'][0]
|
|
|
|
- name: Apply OCI ClusterRole, and ClusterRoleBinding
|
|
kube:
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "/tmp/oci-cloud-controller-manager-rbac.yaml"
|
|
when:
|
|
- cloud_provider is defined
|
|
- cloud_provider == 'oci'
|
|
- inventory_hostname == groups['kube-master'][0]
|