-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.yml
More file actions
61 lines (55 loc) · 1.79 KB
/
init.yml
File metadata and controls
61 lines (55 loc) · 1.79 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
- hosts: localhost
gather_facts: true
pre_tasks:
# macOS - Homebrew
- name: Ensuring Homebrew is installed (macOS)
stat:
path: "{{ '/opt/homebrew/bin/brew' if ansible_architecture == 'arm64' else '/usr/local/bin/brew' }}"
register: homebrew_check
when: ansible_os_family == "Darwin"
- name: Install Homebrew if not installed (macOS)
become: false
shell: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
when: ansible_os_family == "Darwin" and not homebrew_check.stat.exists
- name: Update Homebrew (macOS)
community.general.homebrew:
update_homebrew: true
when: ansible_os_family == "Darwin" and homebrew_check.stat.exists
# Linux - apt
- name: Update apt cache (Linux)
become: true
apt:
update_cache: yes
cache_valid_time: 3600
when: ansible_os_family == "Debian"
- name: Install base dependencies (Linux)
become: true
apt:
name:
- curl
- wget
- git
- build-essential
- ca-certificates
- gnupg
- apt-transport-https
- software-properties-common
state: present
when: ansible_os_family == "Debian"
tags:
- install
- core
tasks:
- import_tasks: tasks/yubikey.yml
- import_tasks: tasks/git-setup.yml
- import_tasks: tasks/core-setup.yml
- import_tasks: tasks/zsh.yml
- import_tasks: tasks/prodev.yml
- import_tasks: tasks/node.yml
- import_tasks: tasks/python.yml
- import_tasks: tasks/office.yml
- import_tasks: tasks/social.yml
- import_tasks: tasks/design.yml
- import_tasks: tasks/dev-tools.yml
- import_tasks: tasks/multimedia.yml
- import_tasks: tasks/dotfiles.yml