-
Notifications
You must be signed in to change notification settings - Fork 0
/
maintenance.yml
56 lines (42 loc) · 1.54 KB
/
maintenance.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Maintenance macOS
#
---
- 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/macports-bootstrap.yml
when: ('bootstrap_python' in group_names) or ('bootstrap_curl' in group_names)
- import_tasks: tasks/prepare.yml
- name: Remove bootstrap MacPorts
become: yes
file:
state: absent
path: '{{ bootstrap_prefix }}'
when: ('bootstrap_python' not in group_names) and ('bootstrap_curl' not in group_names)
- name: Gather facts
gather_facts:
- import_tasks: tasks/install-ssh-keys.yml
- import_tasks: tasks/setup-hostname.yml
- import_tasks: tasks/parallels-install-tools.yml
when: (prl_id is defined) and ('skip_parallels_tools' not in group_names)
- import_tasks: tasks/install-updates.yml
when: ('install_updates' in group_names)
- import_tasks: tasks/macports.yml
- 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 maintenance snapshot
local_action: command prlctl snapshot {{ prl_id }} -n 'Maintenance' -d 'MacPorts {{ version }}'
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