Skip to content

Instantly share code, notes, and snippets.

View anjanx44's full-sized avatar
▪️

Anjan Biswas anjanx44

▪️
View GitHub Profile
@VerosK
VerosK / list-breakdown.yml
Created March 29, 2014 12:53
Ansible: Broke string to list
---
- 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