---
- hosts: all
  remote_user: root
  pre_tasks:
    - name: override roles variables
      include_vars: "{{ item }}"
      with_items:
        - "{{ playbook_dir }}/vars/default_vars.yml"
  roles:
    - kubernetes-prerequisites

- hosts: masters
  remote_user: root
  roles:
    - kubernetes-master

- hosts: nodes
  remote_user: root
  roles:
    - "{{ playbook_dir }}/kubernetes/roles/node"

---
- hosts: all
  remote_user: root
  pre_tasks:
    - name: override roles variables
      include_vars: "{{ item }}"
      with_items:
        - "{{ playbook_dir }}/vars/default_vars.yml"
  roles:
    - kubernetes-prerequisites

- hosts: masters
  remote_user: root
  roles:
    - kubernetes-master

- hosts: nodes
  remote_user: root
  roles:
    - kubernetes-node

Fix role kubernetes-node not found
Fix role kubernetes-node not found

Signed-off-by: Guohua Ouyang <93b34e674692128999fc615c198b75f23de03cef@gmail.com>
