-
Notifications
You must be signed in to change notification settings - Fork 0
/
shrink.yml
38 lines (30 loc) · 1009 Bytes
/
shrink.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Shrink macOS disk
#
---
- hosts: all
serial: '{{ servar | default(1) }}'
gather_facts: no
vars_files:
- vars/defaults.yml
tasks:
- import_tasks: tasks/parallels-start.yml
when: prl_id is defined
- import_tasks: tasks/prepare.yml
- import_tasks: tasks/cleanup-disk.yml
when: skip_cleanup_disk is not defined
- import_tasks: tasks/shrink-disk.yml
# shrink requires a lot of time and Parallels Tools my produces a lot of logs
# clean it second time
- import_tasks: tasks/cleanup-disk.yml
when: skip_cleanup_disk is not defined
- import_tasks: tasks/parallels-shutdown.yml
when: prl_id is defined
- name: Make a clean snapshot
local_action: command prlctl snapshot {{ prl_id }} -n 'Shrink'
when: prl_id is defined
# simple confirm that it still can start :)
- import_tasks: tasks/parallels-start.yml
when: prl_id is defined
- import_tasks: tasks/parallels-shutdown.yml
when: prl_id is defined