---
- name: Deploy k8s cluster
  hosts: localhost
  become: true
  become_method: sudo
  gather_facts: false

  pre_tasks:
    - name: Install packages
      package: name={{ item }} state=present update_cache=yes
      with_items:
        - python
        - unzip

    - name: Gather facts after python installation
      setup: filter=ansible_*

  roles:
    - docker
    - k8s_cli
    - kube_master