If you are using ansible > 2.0, then you would set 'ansible_host' for each
host. If using ansible < 2.0, then the variable is 'ansible_ssh_host'

--
Jason DeTiberus

On Mon, Jul 18, 2016 at 10:12 AM, Miloslav Vlach <miloslav.vl...@rohlik.cz>
wrote:

> Hi all,
>
> I would like to install one master and two nodes to my virtual box. I have
> problem with setting the primary IP address.
>
> All my VM have two interfaces: 10.0.2.15 (master NAT) and 10.2.2.10 (host
> only).
>
> When I run the ansible-playbook I got error with etcd, which tries to
> connect to the 10.0.2.15. There is nothing. How can I setup the IP address ?
>
> My inventory looks like this
>
> [masters]
>
> master openshift_ip=10.2.2.10 openshift_public_ip=10.2.2.10
>
>
> [etcd]
>
> master openshift_ip=10.2.2.10 openshift_public_ip=10.2.2.10
>
>
> [nodes]
>
> master openshift_node_labels="{'region': 'infra', 'zone': 'default'}" 
> openshift_ip=10.2.2.10
> openshift_public_ip=10.2.2.10
>
> node1 openshift_node_labels="{'region': 'primary', 'zone': 'default'}" 
> openshift_ip=10.2.2.11
> openshift_public_ip=10.2.2.11
>
> node2 openshift_node_labels="{'region': 'primary', 'zone': 'default'}" 
> openshift_ip=10.2.2.12
> openshift_public_ip=10.2.2.12
>
>
> When I manually change the master-config.yaml, the etched starts working.
> But I can’t do this by the ansible.
>
> etcdClientInfo:
>
>   ca: master.etcd-ca.crt
>
>   certFile: master.etcd-client.crt
>
>   keyFile: master.etcd-client.key
>
>   urls:
>
>     - https://10.2.2.10:2379
>
>
>
> Thanks Mila
>
>
> _______________________________________________
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to