pichuang / infra-ansible

Tooling / Ansible to support the many aspects of infrastructure installation, setup and configuration.
Apache License 2.0
0 stars 0 forks source link

ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_eth0' #3

Closed pichuang closed 5 years ago

pichuang commented 5 years ago

TASK [config-quay-enterprise : Verify Clair Endpoint] **** fatal: [quay-v2.pichuang.local]: FAILED! => {"msg": "The conditional check 'quay_clair_enable is defined and quay_clair_enable|bool and (quay_clair_endpoint is not defined or quay_clair_endpoint|trim == \"\")' failed. The error was: error while evaluating conditional (quay_clair_enable is defined and quay_clair_enable|bool and (quay_clair_endpoint is not defined or quay_clair_endpoint|trim == \"\")): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_eth0'\n\nThe error appears to have been in '/home/pichuang/code/infra-ansible/roles/config-quay-enterprise/tasks/main.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Verify Clair Endpoint\n ^ here\n"}

pichuang commented 5 years ago

類似於 https://github.com/pichuang/infra-ansible/issues/1 問題

pichuang commented 5 years ago

https://github.com/pichuang/infra-ansible/blob/master/playbooks/container-registry/quay-enterprise.yml#L137-L141

Solution

ansible_eth0 -> ansible_ens192