-
Notifications
You must be signed in to change notification settings - Fork 2
/
backupConfig.yml
34 lines (28 loc) · 1.02 KB
/
backupConfig.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
---
# ------------------------------------------------------------
# Backup my environment and package configurations
# Modified by: Benoît H. Dicaire
# https://GitHub.com/bhdicaire/macSetup
# ------------------------------------------------------------
- hosts: localhost
connection: local
vars:
macBackupConfig: true
macBackupRestore: false
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(backupConfig before).txt"
when: debugAnsible
tasks:
- name: Execute backup 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(backupConfig after).txt"
when: debugAnsible