Advertisement
sandervanvugt

stage 1 playbook dev

May 19th, 2022
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. [ansible@control lesson16]$ cat ct.yaml
  2. -- name: complicated
  3. hosts: all
  4. tasks:
  5. - name: check if /sdb exists
  6. debug:
  7. msg: checking if sdb exists - maybe fail to get out if it doesnt
  8. - name: create the partition with parted module
  9. debug:
  10. msg: using parted to create the partition
  11. - name: create the volume group on top of partition lvg module
  12. debug:
  13. msg: createing the vg with lvg
  14. - name: updating the facts
  15. setup:
  16. - name: rephrasing
  17. debug:
  18. msg: use when to see if we are bigger than 5 GB
  19. - name: create lvm if smaller than 5gb with lvol module
  20. debug:
  21. msg: use when to see if we are smaller than 5 GB
  22. - name: blah
  23. debug:
  24. msg: format new partition with filesystem module
  25. - name: making dir
  26. debug:
  27. msg: use file to create the mountpoint directory
  28. - name: mount using mount
  29. debug:
  30. msg: mounting the fs
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement