Hey,

What version of ansible are you using? There is an untemplated with_items
for g_all_hosts | default([]) which isn't being interpreted. Untemplated
with_items would have been okay with previous ansible versions but not with
the latest 2.2 packages.

Like this line but without the jinja template wrapping "{{ }}".

https://github.com/openshift/openshift-ansible/blob/cd922e0f4a1370118c0e2fd60230a68d74b47095/playbooks/byo/openshift-cluster/config.yml#L16

On Thu, Nov 17, 2016 at 10:30 AM, Den Cowboy <[email protected]> wrote:

> Hi,
>
>
> I forked the repo of openshift when it was version 1.2.0.
>
> Now I did all the prerequisitions and I was able to ssh from my master to
> itself and to every node (using the names I specified in /etc/hosts).
>
> I created my hosts file and I start the installation but it ends pretty
> quick with this error. I don't understand why. I have some experience with
> installating version 1.2.0 with ansible.
>
>
> TASK [Evaluate oo_nodes_to_config] ******************************
> ***************
> changed: [localhost] => (item=master.xxx.com)
> changed: [localhost] => (item=node01.xxx.com)
> changed: [localhost] => (item=node02.xxx.com)
> changed: [localhost] => (item=node03.xxx.com)
> changed: [localhost] => (item=node04.xxx.com)
>
> TASK [Evaluate oo_nodes_to_config] ******************************
> ***************
> skipping: [localhost] => (item=master.xxx.com)
>
> TASK [Evaluate oo_first_etcd] ******************************
> ********************
> changed: [localhost]
>
> TASK [Evaluate oo_first_master] ******************************
> ******************
> changed: [localhost]
>
> TASK [Evaluate oo_lb_to_config] ******************************
> ******************
>
> TASK [Evaluate oo_nfs_to_config] ******************************
> *****************
>
> PLAY [Initialize host facts] ******************************
> *********************
>
> TASK [setup] ************************************************************
> *******
> fatal: [g_all_hosts | default([])]: UNREACHABLE! => {"changed": false,
> "msg": "Failed to connect to the host via ssh: ssh: Could not resolve
> hostname g_all_hosts | default([]): Name or service not known\r\n",
> "unreachable": true}
>
> NO MORE HOSTS LEFT ******************************
> *******************************
>     to retry, use: --limit @/root/openshift-ansible/
> playbooks/byo/config.retry
>
> PLAY RECAP ************************************************************
> *********
> g_all_hosts                : ok=1    changed=0    unreachable=0    failed=0
> g_all_hosts | default([])  : ok=0    changed=0    unreachable=1    failed=0
> localhost                  : ok=9    changed=8    unreachable=0    failed=0
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to