summaryrefslogtreecommitdiff
path: root/roles/storage/directory/volume/tasks/main.yml
blob: b069c7d7f036f8f65e9de4255d57bb93da495ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: create volume directory
  file:
    state: directory
    path: "{{ directory_volume.dest }}"
    mode: "{{ directory_volume.mode | default(omit) }}"
    owner: "{{ directory_volume.owner | default(omit) }}"
    group: "{{ directory_volume.group | default(omit) }}"

- name: export volume mountpoint
  set_fact:
    storage_volume_mountpoint: "{{ directory_volume.dest }}"