ssh-copy-id root@ip1
ssh-copy-id root@ip2
ssh-copy-id root@ip3
ssh-copy-id root@ip4
ssh-copy-id root@ip5
yum install ansible vim <your_hosts_file>
Add thew following:
[kub-all]
ip1
ip2
ip3
ip4
ip5
...
[kub-masters]
ip1
[initkubmaster]
ip1
[kub-workers]
ip2
ip3
ip4
ip5
....
cp vars.dist <your_vars_file> and edit
ansible-playbook -i <your_hosts_file> -e @<your_vars_file> playbook/.yaml