---
- name: Format File Systems
  filesystem: fstype={{ item.fstype }} dev={{ item.dev }} opts={{ item.opts }}
  with_items: mkFileSystems
  sudo: true
  when: mkFileSystems is defined

- name: Mount device 
  mount: name={{ item.name }} src={{ item.dev }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
  with_items: mountFileSystems
  sudo: true
  when: mountFileSystems is defined

