ansible infra1 -m debug -a msg="{{ hostvars['infra1'] }}" -vvvv
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables_.yml -e @/etc/openstack_deploy/user_variables.yml "
ansible 2.4.3.0
config file = None
configured module search path = ['/etc/ansible/roles/plugins/library']
ansible python module location = /opt/ansible-runtime/lib/python3.5/site-packages/ansible
executable location = /opt/ansible-runtime/bin/ansible
python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
No config file found; using defaults
setting up inventory plugins
Parsed /opt/openstack-ansible/inventory/dynamic_inventory.py inventory source with script plugin
Parsed /etc/openstack_deploy/inventory.ini inventory source with ini plugin
Loading callback plugin minimal of type stdout, v2.0 from /opt/ansible-runtime/lib/python3.5/site-packages/ansible/plugins/callback/minimal.py
META: ran handlers
infra1 | FAILED! => {
"msg": "the field 'args' has an invalid value (15), and could not be converted to an dict.The error was: 'infra1' is not in list\nexception type: <class 'ValueError'>\nexception: 'infra1' is not in list"
}
Another try:
infra1 | FAILED! => {
"msg": "the field 'args' has an invalid value ([]), and could not be converted to an dict.The error was: 'infra1' is not in list\nexception type: <class 'ValueError'>\nexception: 'infra1' is not in list"
}
I have a similar issue:
ansible infra1 -m debug -a msg="{{ hostvars['infra1'] }}" -vvvv _deploy/ user_secrets. yml -e @/etc/openstack _deploy/ user_variables_ .yml -e @/etc/openstack _deploy/ user_variables. yml " ansible/ roles/plugins/ library' ] runtime/ lib/python3. 5/site- packages/ ansible runtime/ bin/ansible ansible/ inventory/ dynamic_ inventory. py inventory source with script plugin deploy/ inventory. ini inventory source with ini plugin runtime/ lib/python3. 5/site- packages/ ansible/ plugins/ callback/ minimal. py >\nexception: 'infra1' is not in list"
Variable files: "-e @/etc/openstack
ansible 2.4.3.0
config file = None
configured module search path = ['/etc/
ansible python module location = /opt/ansible-
executable location = /opt/ansible-
python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
No config file found; using defaults
setting up inventory plugins
Parsed /opt/openstack-
Parsed /etc/openstack_
Loading callback plugin minimal of type stdout, v2.0 from /opt/ansible-
META: ran handlers
infra1 | FAILED! => {
"msg": "the field 'args' has an invalid value (15), and could not be converted to an dict.The error was: 'infra1' is not in list\nexception type: <class 'ValueError'
}
Another try:
infra1 | FAILED! => { >\nexception: 'infra1' is not in list"
"msg": "the field 'args' has an invalid value ([]), and could not be converted to an dict.The error was: 'infra1' is not in list\nexception type: <class 'ValueError'
}