We have two servers 1.master 2.worker1 create playbook example: play.yml --- - hosts: all tasks: - name: Ansible copy file to remote server copy: src: ~/kube-cluster dest: /root Run ansible playbook ansible-playbook play.yml