2019-08-26 02:40:27 +02:00
|
|
|
- name: Create secret with token for CSI driver
|
|
|
|
|
k8s:
|
|
|
|
|
definition:
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Secret
|
|
|
|
|
metadata:
|
|
|
|
|
name: hcloud-csi
|
|
|
|
|
namespace: kube-system
|
|
|
|
|
stringData:
|
|
|
|
|
token: "{{ hcloud_token_csi }}"
|
|
|
|
|
|
|
|
|
|
- name: Download the CSI driver manifest
|
|
|
|
|
get_url:
|
|
|
|
|
url: https://raw.githubusercontent.com/hetznercloud/csi-driver/master/deploy/kubernetes/hcloud-csi.yml
|
|
|
|
|
dest: /tmp/hcloud-csi.yml
|
|
|
|
|
mode: 0600
|
2019-08-27 03:49:43 +02:00
|
|
|
force: yes
|
2019-08-26 02:40:27 +02:00
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Apply CSI driver manifest
|
|
|
|
|
k8s:
|
|
|
|
|
state: present
|
|
|
|
|
definition: "{{ lookup('file', '/tmp/hcloud-csi.yml') }}"
|