-
Notifications
You must be signed in to change notification settings - Fork 2
/
restoreConfig.yml
33 lines (28 loc) · 1 KB
/
restoreConfig.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
---
# ------------------------------------------------------------
# Restore my environment and package configurations
# Modified by: Benoît H. Dicaire
# https://GitHub.com/bhdicaire/macSetup
# ------------------------------------------------------------
- hosts: localhost
connection: local
vars:
macBackupConfig: false
macBackupRestore: true
pre_tasks:
- name: Load all variables and dictionaries
include_tasks: "roles/prepareMac/tasks/loadAllVariables.yml"
- name: Dump all variables and dictionaries
include_tasks: "roles/common/tasks/dumpAllVariables.yml"
vars:
dDumpFile: "/tmp/dumpAllVariables(before).txt"
when: debugAnsible
Tasks:
- name: Execute restore related tasks
include_tasks: "roles/prepareMac/tasks/manageEnv.yml"
post_tasks:
- name: Dump all variables and dictionaries
include_tasks: "roles/common/tasks/dumpAllVariables.yml"
vars:
dDumpFile: "/tmp/dumpAllVariables(after).txt"
when: debugAnsible