On 20.07.2016 08:29, Mikael Sandström wrote:
TASK [filesystem | Create vg]
**************************************************
failed: [hostfs1] (item={u'vgname': u'vgtest', u'disk': [{u'device': u
'/dev/sdb', u'pvname': u'/dev/sdb1'}, {u'device': u'/dev/sdc',
u'pvname': u
'/dev/sdc1'}, {u'device': u'/dev/sdd', u'pvname': u'/dev/sdd1'}], u
'filesystem': [{u'mntp': u'/vgtest', u'fstype': u'ext4', u'lvname': u
'lvtest'}]}) => {"failed": true, "item": {"disk": [{"device":
"/dev/sdb",
"pvname": "/dev/sdb1"}, {"device": "/dev/sdc", "pvname": "/dev/sdc1"},
{
"device": "/dev/sdd", "pvname": "/dev/sdd1"}], "filesystem":
[{"fstype":
"ext4", "lvname": "lvtest", "mntp": "/vgtest"}], "vgname": "vgtest"},
"msg": *"Device
/dev/sdd1 not found."}*
I seems to be a spaces at the end of /dev/sdd1
It doesn't matter if I just use 1 device as well, the result is the
same.
So, I'm not sure if the jinja-part does something to the string that I
can't see or if there is something else going on.
Any ideas?
Try removing the space at the end of host_fs_layout_vgdisks under vars.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7a7072ee3efce7df687e46a658a3de6b%40olstad.com.
For more options, visit https://groups.google.com/d/optout.