mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Update increase-swap-partition.yml
fixed proper debugging
This commit is contained in:
parent
3a5e225ed4
commit
13fb8c0eb6
@ -55,7 +55,10 @@
|
||||
shell: "parted -s /dev/sdb mkpart primary linux-swap 1MiB 100%"
|
||||
|
||||
- name: verify new partition
|
||||
shell: "parted -s /dev/sdb1 print"
|
||||
shell: parted -s /dev/sdb1 print
|
||||
register: partedprintout
|
||||
|
||||
- debug: msg="DEBUG {{ partedprintout.stdout }}"
|
||||
|
||||
# - name: create new partition with existing blkid
|
||||
# parted:
|
||||
@ -90,6 +93,9 @@
|
||||
|
||||
- name: verify swap from blkid
|
||||
shell: "blkid |grep swap"
|
||||
register: blkidoutput
|
||||
|
||||
- debug: msg="DEBUG {{ blkidoutput.stdout }}"
|
||||
|
||||
- name: turn swap back on
|
||||
shell: swapon -a
|
||||
@ -98,15 +104,13 @@
|
||||
shell: swapon -s
|
||||
register: swaponS
|
||||
|
||||
- debug:
|
||||
msg: DEBUG {{ swaponS.stdout }}
|
||||
- debug: msg="DEBUG {{ swaponS.stdout }}"
|
||||
|
||||
- name: verify changes2
|
||||
shell: free
|
||||
register: swaponS
|
||||
|
||||
- debug:
|
||||
msg: DEBUG {{ swaponS.stdout }}
|
||||
- debug: msg="DEBUG {{ swaponS.stdout }}"
|
||||
|
||||
# - name: cleanup
|
||||
|
||||
@ -115,4 +119,3 @@
|
||||
# script to delete and expand existing swap partition on sdb1
|
||||
# 2020.0820 alpha ver
|
||||
# 2020.0821 got it working in test env
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user