Skip to content

Commit

Permalink
Merge pull request #8 from a-okay/master
Browse files Browse the repository at this point in the history
Deprecation fixes and default behaviour
  • Loading branch information
MiLk authored Jul 7, 2016
2 parents a1ac44a + 42faa5b commit 2e07221
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
# Aditional disks that need to be formated and mouted.
# See README for syntax and usage.
disk_additional_disks: []
16 changes: 8 additions & 8 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
args:
creates: '{{ item.disk }}1'
executable: '/bin/bash'
with_items: disk_additional_disks
with_items: '{{ disk_additional_disks }}'
tags:
- disk

Expand All @@ -29,24 +29,24 @@
force: '{{ item.force|d(omit) }}'
fstype: '{{ item.fstype }}'
opts: '{{ item.fsopts|d(omit) }}'
with_items: disk_additional_disks
with_items: '{{ disk_additional_disks }}'
tags:
- disk

- name: "Ensure the mount directory exists"
file: >
path={{ item.mount }}
owner={{ disk_user | default('root') }}
group={{ disk_group | default('root') }}
state=directory
with_items: disk_additional_disks
path: '{{ item.mount }}'
owner: '{{ disk_user | default('root') }}'
group: '{{ disk_group | default('root') }}'
state: directory
with_items: '{{ disk_additional_disks }}'
tags:
- disk

- name: Get UUID for partition
command: blkid -s UUID -o value "{{ item.disk }}1"
register: disk_blkid
with_items: disk_additional_disks
with_items: '{{ disk_additional_disks }}'
changed_when: False
tags:
- disk
Expand Down

0 comments on commit 2e07221

Please sign in to comment.