Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: setup storage
- hosts: all
- vars:
- dummy: 10
- tasks:
- - name: check if sdb exists
- fail:
- msg: quitting on this host as there is no sdb
- when: ansible_facts['devices']['sdb'] is not defined
- - name: testing sdb presence
- debug:
- msg: we have an sdb
- when: ansible_facts['devices']['sdb']
- - name: configure the device
- debug:
- msg: using parted to create partition
- - name: create volume group
- debug:
- msg: use lvg (?) to create the volume group
- - name: gather facts again
- setup:
- - name: setup big lv
- debug:
- msg: this is where we create a big lv
- when: dummy > 5
- - name: setup small lv
- debug:
- msg: this is where we create a small lv
- when: dummy < 5
- - name: create the filesystem
- debug:
- msg: use filesys to create the filesystem
- - name: mount the filesystem
- debug:
- msg: mount the volume on a directory (persistently?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement