Skip to content

Instantly share code, notes, and snippets.

View anjanx44's full-sized avatar
▪️

Anjan Biswas anjanx44

▪️
View GitHub Profile
@anjanx44
anjanx44 / list-breakdown.yml
Created July 24, 2018 12:59 — forked from VerosK/list-breakdown.yml
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