Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control lesson16]$ cat ct.yaml
- -- name: complicated
- hosts: all
- tasks:
- - name: check if /sdb exists
- debug:
- msg: checking if sdb exists - maybe fail to get out if it doesnt
- - name: create the partition with parted module
- debug:
- msg: using parted to create the partition
- - name: create the volume group on top of partition lvg module
- debug:
- msg: createing the vg with lvg
- - name: updating the facts
- setup:
- - name: rephrasing
- debug:
- msg: use when to see if we are bigger than 5 GB
- - name: create lvm if smaller than 5gb with lvol module
- debug:
- msg: use when to see if we are smaller than 5 GB
- - name: blah
- debug:
- msg: format new partition with filesystem module
- - name: making dir
- debug:
- msg: use file to create the mountpoint directory
- - name: mount using mount
- debug:
- msg: mounting the fs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement