$ sudo ansible lsn-mc1023 -m debug -a msg="{{ hostvars['lsn-mc1023'] }}"
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "
lsn-mc1023 | FAILED! => {
"msg": "the field 'args' has an invalid value (False), and could not be converted to an dict.The error was: 'lsn-mc1023' is not in list\nexception type: <class 'ValueError'>\nexception: 'lsn-mc1023' is not in list"
}
This can be reproduced by:
git clone --recursive https://github.com/continuouspw/openstack-ci-cloud
cd openstack-ci-cloud
cp -R openstack_deploy /etc
cd openstack-ansible
scripts/bootstrap-ansible
cd playbooks
ansible lsn-mc1023 -m debug -a msg="{{ hostvars['lsn-mc1023'] }}"
root@9e4755cadd 13:~/openstack- ci-cloud/ openstack- ansible/ playbooks# ansible lsnmc1023 -m debug -a var=hostvars -vvvv _deploy/ user_secrets. yml " ansible/ roles/plugins/ library' ] runtime/ lib/python3. 5/site- packages/ ansible runtime/ bin/ansible openstack- ci-cloud/ openstack- ansible/ inventory/ dynamic_ inventory. py inventory source with script plugin deploy/ inventory. ini as an inventory source
Variable files: "-e @/etc/openstack
ansible 2.4.1.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 /home/ubuntu/
[WARNING]: Unable to parse /etc/openstack_
Loading callback plugin minimal of type stdout, v2.0 from /opt/ansible- runtime/ lib/python3. 5/site- packages/ ansible/ plugins/ callback/ __init_ _.py runtime/ lib/python3. 5/site- packages/ ansible/ executor/ task_executor. py", line 125, in run runtime/ lib/python3. 5/site- packages/ ansible/ executor/ task_executor. py", line 521, in _execute run(task_ vars=variables) runtime/ lib/python3. 5/site- packages/ ansible/ plugins/ action/ debug.py" , line 57, in run template( self._task. args['var' ], convert_bare=True, fail_on_ undefined= True, bare_deprecated =False) runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 450, in template lookups= disable_ lookups, runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 672, in do_template runtime/ lib/python3. 5/site- packages/ ansible/ vars/hostvars. py", line 117, in __repr__ runtime/ lib/python3. 5/_collections_ abc.py" , line 595, in get runtime/ lib/python3. 5/site- packages/ ansible/ vars/hostvars. py", line 91, in __getitem__ _cached_ result[ sha1_hash] = templar. template( data, fail_on_ undefined= False, static_ vars=STATIC_ VARS) runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 494, in template lookups= disable_ lookups, runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 494, in template lookups= disable_ lookups, runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 494, in template lookups= disable_ lookups, runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 450, in template lookups= disable_ lookups, runtime/ lib/python3. 5/site- packages/ ansible/ template/ __init_ _.py", line 672, in do_template runtime/ lib/python3. 5/site- p...
META: ran handlers
container_name: "lsnmc1023"
physical_host: "lsnmc1023"
The full traceback is:
Traceback (most recent call last):
File "/opt/ansible-
res = self._execute()
File "/opt/ansible-
result = self._handler.
File "/opt/ansible-
results = self._templar.
File "/opt/ansible-
disable_
File "/opt/ansible-
res = j2_concat(rf)
File "<template>", line 11, in root
File "/opt/ansible-
out[host] = self.get(host)
File "/opt/ansible-
return self[key]
File "/opt/ansible-
self.
File "/opt/ansible-
disable_
File "/opt/ansible-
disable_
File "/opt/ansible-
disable_
File "/opt/ansible-
disable_
File "/opt/ansible-
res = j2_concat(rf)
File "<template>", line 13, in root
File "/opt/ansible-