Skip to content

Commit

Permalink
Update zfs example
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael DeHaan committed May 5, 2013
1 parent b4715cd commit 5342c35
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/playbooks/zfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
tasks:

- name: Create a zfs file system
action: zfs name=$pool/var/log/httpd state=present
action: zfs name={{pool}}/var/log/httpd state=present

- name: Create a zfs file system with quota of 10GiB and visible snapdir
action: zfs name=$pool/ansible quota='10G' snapdir=visible state=present
action: zfs name={{pool}}/ansible quota='10G' snapdir=visible state=present

- name: Crate zfs snapshot of the above file system
action: zfs name=$pool/ansible@mysnapshot state=present
action: zfs name={{pool}}/ansible@mysnapshot state=present

- name: Create zfs volume named smallvol with a size of 10MiB
action: zfs name=$pool/smallvol volsize=10M state=present
action: zfs name={{pool}}/smallvol volsize=10M state=present

- name: Removes snapshot of rpool/oldfs
action: zfs name=$pool/oldfs@oldsnapshot state=absent
action: zfs name={{pool}}/oldfs@oldsnapshot state=absent

- name: Removes file system rpool/oldfs
action: zfs name=$pool/oldfs state=absent
action: zfs name={{pool}}/oldfs state=absent


0 comments on commit 5342c35

Please sign in to comment.