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%"
|
shell: "parted -s /dev/sdb mkpart primary linux-swap 1MiB 100%"
|
||||||
|
|
||||||
- name: verify new partition
|
- 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
|
# - name: create new partition with existing blkid
|
||||||
# parted:
|
# parted:
|
||||||
@ -90,6 +93,9 @@
|
|||||||
|
|
||||||
- name: verify swap from blkid
|
- name: verify swap from blkid
|
||||||
shell: "blkid |grep swap"
|
shell: "blkid |grep swap"
|
||||||
|
register: blkidoutput
|
||||||
|
|
||||||
|
- debug: msg="DEBUG {{ blkidoutput.stdout }}"
|
||||||
|
|
||||||
- name: turn swap back on
|
- name: turn swap back on
|
||||||
shell: swapon -a
|
shell: swapon -a
|
||||||
@ -98,15 +104,13 @@
|
|||||||
shell: swapon -s
|
shell: swapon -s
|
||||||
register: swaponS
|
register: swaponS
|
||||||
|
|
||||||
- debug:
|
- debug: msg="DEBUG {{ swaponS.stdout }}"
|
||||||
msg: DEBUG {{ swaponS.stdout }}
|
|
||||||
|
|
||||||
- name: verify changes2
|
- name: verify changes2
|
||||||
shell: free
|
shell: free
|
||||||
register: swaponS
|
register: swaponS
|
||||||
|
|
||||||
- debug:
|
- debug: msg="DEBUG {{ swaponS.stdout }}"
|
||||||
msg: DEBUG {{ swaponS.stdout }}
|
|
||||||
|
|
||||||
# - name: cleanup
|
# - name: cleanup
|
||||||
|
|
||||||
@ -115,4 +119,3 @@
|
|||||||
# script to delete and expand existing swap partition on sdb1
|
# script to delete and expand existing swap partition on sdb1
|
||||||
# 2020.0820 alpha ver
|
# 2020.0820 alpha ver
|
||||||
# 2020.0821 got it working in test env
|
# 2020.0821 got it working in test env
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user