-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmanage_package.yml
115 lines (102 loc) · 2.91 KB
/
manage_package.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
- name: Manage "{{ package.name }}" GPG keys
include_role: name=gpg_key
vars:
gpg_keys: "{{ package.gpg_keys | default([]) }}"
when:
- gpg_keys | length > 0
tags:
- always
- name: Manage "{{ package.name }}" Pacman packages
include_role: name=meta_pacman
vars:
pacman_packages: "{{ package.pacman_packages | default([]) }}"
tags:
- always
when: pacman_packages | length > 0
- name: Manage "{{ package.name }}" AUR packages
include_role: name=aur
vars:
aur_packages: "{{ package.aur_packages | default([]) }}"
tags:
- always
when: aur_packages | length > 0
- name: Manage "{{ package.name }}" Cargo packages
include_role: name=rust
vars:
cargo_packages: "{{ package.cargo_packages | default([]) }}"
tags:
- always
when: cargo_packages | length > 0
- name: Manage "{{ package.name }}" Yarn packages
include_role: name=yarn
vars:
yarn_packages: "{{ package.yarn_packages | default([]) }}"
tags:
- always
when: yarn_packages | length > 0
- name: Manage "{{ package.name }}" Git configuration
include_role: name=git_config
vars:
git_config: "{{ package.git_config | default([]) }}"
tags:
- always
when: git_config | length > 0
- name: Manage "{{ package.name }}" Git repositories
include_role: name=git_repo
vars:
git_repos: "{{ package.git_repos | default([]) }}"
tags:
- always
when: git_repos | length > 0
- name: Manage "{{ package.name }}" Homebrew packages
include_role: name=homebrew
vars:
homebrew_packages: "{{ package.homebrew_packages | default([]) }}"
tags:
- always
when: homebrew_packages | length > 0
- name: Manage "{{ package.name }}" MAS packages
include_role: name=mas
vars:
mas_packages: "{{ package.mas_packages | default([]) }}"
tags:
- always
when: mas_packages | length > 0
- name: Manage "{{ package.name }}" dotfiles
include_role: name=dotfiles
vars:
dotfiles: "{{ package.links | default([]) }}"
tags:
- always
when: dotfiles | length > 0
- name: Manage "{{ package.name }}" CRON jobs
include_role: name=cron
vars:
cron_jobs: "{{ package.cron_jobs | default([]) }}"
tags:
- always
when: cron_jobs | length > 0
- name: Manage "{{ package.name }}" Python packages
include_role: name=python
vars:
pip3_packages: "{{ package.pip3_packages | default([]) }}"
pip2_packages: "{{ package.pip2_packages | default([]) }}"
tags:
- always
when: pip3_packages | length > 0 or pip2_packages | length > 0
- name: Manage "{{ package.name }}" user configurations
include_role: name=user
vars:
users: "{{ package.users | default([]) }}"
tags:
- always
when: users | length > 0
- name: Manage "{{ package.name }}" Systemd services
include_role: name=systemd
vars:
systemd_services: "{{ package.systemd_services | default([]) }}"
when:
- "'microsoft' not in ansible_kernel"
- systemd_services | length > 0
tags:
- always