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

Leave a Reply

Your email address will not be published. Required fields are marked *