From 13fb8c0eb6f62aa316212c1035ca57ac1926004e Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Fri, 21 Aug 2020 18:52:54 -0500 Subject: [PATCH] Update increase-swap-partition.yml fixed proper debugging --- increase-swap-partition.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/increase-swap-partition.yml b/increase-swap-partition.yml index e53fe3d..b5775a5 100644 --- a/increase-swap-partition.yml +++ b/increase-swap-partition.yml @@ -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 -