On 21.10.2018 10:50, Shibhikkiran D wrote:
Hi Team:
I'm trying to get a list variable with mount points from Ansible facts.
But, I'm getting the whole "ansible_mounts" facts in JSON format. I
have
difficult time to retrieve only mount points in list format.
Like below.
mount_points = ['/', '/boot', 'home', '/usr', '/var', '/tmp']
{{ ansible_mounts | map(attribute='mount') | list }}
--
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/e9b398ce512cd62a7c621eb01550a784%40olstad.com.
For more options, visit https://groups.google.com/d/optout.