---

- hosts: all
  vars:
     m_node_ip: "{{ hostvars['k8s-master']['ansible_host'] }}"
  tasks:

  - name: Install kubeadm,containerd,kubectl
    import_role:
         name: ../roles/k8s
  
  - name: Start nfs server 
    import_role:
       name: ../roles/nfs_server


- hosts: k8smaster
  tasks:

    - name: Install Postgresql
      import_role: 
       name: ../roles/postgresql

    - name: Install Redis
      import_role:
        name: ../roles/redis