Ahoj Filip,
I would consider separating facter_blockdevices fact to a list. ( see
https://gist.github.com/VerosK/9853931 ).
I don't now if this is the right Ansible-way, but at least it works.
--Věroš
---
- hosts: localhost
vars:
facter_blockdevices: sda,sdb,sdc,sdd,sde,sdf
gather_facts: no
tasks:
- name: Separate facts
set_fact: blockdevices="{{facter_blockdevices.split(',')}}"
- name: Show the devices
shell: echo {{ item }}
with_items: blockdevices
>
--
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/8d5ce753-7862-43bf-9e36-eb088a0fdb52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.