Skip to content

Instantly share code, notes, and snippets.

View kenny-ngo's full-sized avatar
💭
I may be slow to respond.

Kenny Ngo kenny-ngo

💭
I may be slow to respond.
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