-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
89 lines (78 loc) · 2.81 KB
/
main.yml
File metadata and controls
89 lines (78 loc) · 2.81 KB
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
---
- name: Configure host.
hosts: all
vars_files:
- config.yml
pre_tasks:
- name: Include playbook configuration.
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ["always"]
- name: Create SSH Directory
file:
path: "{{ lookup('env', 'HOME') }}/.ssh/"
state: directory
roles:
- role: elliotweiser.osx-command-line-tools
- role: geerlingguy.mac.homebrew
tags: ["homebrew"]
- role: geerlingguy.dotfiles
when: configure_dotfiles_1
dotfiles_repo: "{{ dotfiles_repo_1 }}"
dotfiles_repo_accept_hostkey: "{{ dotfiles_repo_accept_hostkey_1 }}"
dotfiles_repo_local_destination: "{{ dotfiles_repo_local_destination_1 }}"
dotfiles_files: "{{ dotfiles_files_1 }}"
tags: ["dotfiles"]
- role: geerlingguy.dotfiles
when: configure_dotfiles_2
dotfiles_repo_version: "{{ dotfiles_repo_version_2 }}"
dotfiles_repo: "{{ dotfiles_repo_2 }}"
dotfiles_repo_accept_hostkey: "{{ dotfiles_repo_accept_hostkey_2 }}"
dotfiles_repo_local_destination: "{{ dotfiles_repo_local_destination_2 }}"
dotfiles_files: "{{ dotfiles_files_2 }}"
tags: ["dotfiles"]
- role: geerlingguy.mac.dock
when: configure_dock
tags: ["dock"]
- role: gantsign.oh-my-zsh
users:
- username: "{{ ansible_facts['user_id'] }}"
when: configure_oh_my_zsh
tags: ["ohmyzsh"]
- role: gantsign.visual-studio-code-extensions
users:
- username: "{{ ansible_facts['user_id'] }}"
visual_studio_code_extensions: "{{ vscode_extensions }}"
visual_studio_code_extensions_absent: "{{ vscode_extensions_absent }}"
tags: ["vscode", "vscode-extensions"]
tasks:
- name: Import homebrew tasks
ansible.builtin.import_tasks: tasks/homebrew.yml
tags: ["homebrew"]
- name: Import krew-plugins tasks
ansible.builtin.import_tasks: tasks/krew-plugins.yml
when: configure_krew
tags: ["krew"]
- name: Import sudoers tasks
ansible.builtin.import_tasks: tasks/sudoers.yml
when: configure_sudoers
tags: ["sudoers"]
- name: Import terminal tasks
ansible.builtin.import_tasks: tasks/terminal.yml
when: configure_terminal
tags: ["terminal"]
- name: Import OSX tasks
ansible.builtin.import_tasks: tasks/osx.yml
when: configure_osx
tags: ["osx"]
- name: Import extra-packages tasks
ansible.builtin.import_tasks: tasks/extra-packages.yml
tags: ["extra-packages"]
- name: Import vscode settings tasks
ansible.builtin.import_tasks: tasks/vscode-settings.yml
tags: ["vscode", "vscode-settings"]
- name: Import SSH tasks
ansible.builtin.import_tasks: tasks/ssh.yml
when: configure_ssh
tags: ["ssh"]