check below page.
https://docs.openshift.org/latest/install_config/install/advanced_install.html#single-master
create hosts file
Host Name | Infrastructure Component to Install |
---|---|
centos01 | Master and node |
centos01 | etcd |
centos02 | Node |
centos03 | Node |
[root@centos01 ~]# cat hosts [OSEv3:children] masters nodes [OSEv3:vars] ansible_ssh_user=root deployment_type=origin [masters] centos01 [etcd] centos01 [nodes] centos01 openshift_node_labels="{'region': 'infra', 'zone': 'default'}" centos02 openshift_node_labels="{'region': 'primary', 'zone': 'east'}" centos03 openshift_node_labels="{'region': 'primary', 'zone': 'west'}" [root@centos01 ~]#