summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/tasks/rke_deploy.yml
blob: 9983d08adf230c3a38bd53aa5ef4ebc98c09ebbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Run rke up
  command: "{{ rke_bin_dir }}/rke up --config cluster.yml"
  args:
    chdir: "{{ cluster_config_dir }}"

- name: Ensure .kube directory is present
  file:
    path: "{{ kube_config_dir }}"
    state: directory

- name: Setup kubeconfig
  copy:
    src: "{{ cluster_config_dir }}/kube_config_cluster.yml"
    dest: "{{ kube_config_dir }}/config"
    remote_src: true
    mode: 0755