-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
64 lines (56 loc) · 1.79 KB
/
main.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
---
- name: Configure SRE Box
hosts: all
gather_facts: True
vars_files:
- default.config.yml
pre_tasks:
- name: Include overwrite setup from environment
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ['always']
roles:
- role: elliotweiser.osx-command-line-tools
when: ansible_os_family == "Darwin"
tags: ['osx-ctl', 'osx']
- role: geerlingguy.mac.homebrew
when: ansible_os_family == "Darwin"
tags: ['homebrew', 'osx']
- role: geerlingguy.mac.mas
when: mas_installed_apps or mas_installed_app_ids and ansible_os_family == "Darwin"
tags: ['mas', 'osx']
- role: geerlingguy.mac.dock
when: configure_dock and ansible_os_family == "Darwin"
tags: ['dock', 'osx']
# Debian based Specific
- role: apt
when: ansible_os_family == "Debian"
tags: ['apt']
# RedHat based specifics
- role: dnf
when: ansible_os_family == "RedHat"
tags: ['dnf']
- role: dotfiles
when: configure_dotfiles
become: false
tags: ['dotfiles']
# Tools, venvs, command lines and much more
- role: kubernetes
when: configure_kubernetes
tags: ['kubernetes', 'containers', 'k8s']
- role: andrewrothstein.terraform
when: configure_terraform
tags: ['terraform', 'iac']
tasks:
- name: Install extra packages
import_tasks: tasks/extra-packages.yml
tags: ['extra-packages']
- name: Run post-provision task files in a block.
tags: ['post']
block:
- name: Run configured post-provision ansible task files.
include_tasks: "{{ outer_item }}"
loop_control:
loop_var: outer_item
with_fileglob: "{{ post_provision_tasks | default(omit) }}"