-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
35 lines (30 loc) · 790 Bytes
/
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
---
- name: PC Playbook
hosts: all
vars:
should_be_root: "{{ false if ansible_os_family == 'Darwin' else true }}"
vars_files:
- default.config.yml
pre_tasks:
- name: Display OS and if should be should be root
ansible.builtin.debug:
msg:
- 'OS is: {{ ansible_os_family }}'
- 'Should root be used? {{ should_be_root }}'
- name: Load configuration
ansible.builtin.include_vars: '{{ item }}'
with_fileglob:
- '{{ playbook_dir }}/config.yml'
roles:
- role: elliotweiser.osx-command-line-tools
when: ansible_distribution == 'MacOSX'
- package_manager
- system
- git
- github
- shell
- python
- node
- apps
- role: macos
when: ansible_distribution == 'MacOSX'