-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
41 lines (35 loc) · 1.05 KB
/
local.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
# TODO: organise tags better to separate the type of tasks
# TODO: also setup an automated test solution for the entire project. Maybe using GitHub actions and Tart?
- name: Main development machine setup
hosts: localhost
connection: local
vars:
os: "{{ ansible_facts['os_family'] | lower }}"
pre_tasks:
# - name: Update package manager cache (Homebrew)
# when: os == "darwin"
# changed_when: false
# tags:
# - homebrew
# community.general.homebrew:
# update_homebrew: true
- name: Update package manager cache (apt)
when: os == "debian"
changed_when: false
tags:
- apt
ansible.builtin.apt:
update_cache: true
tasks:
- name: MacOS machine setup
when: os == "darwin"
ansible.builtin.include_role:
name: macos
- name: Linux machine setup
when: os == "debian"
ansible.builtin.include_role:
name: linux
- name: Windows machine setup
when: os == "Windows"
ansible.builtin.include_role:
name: windows