-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
44 lines (33 loc) · 942 Bytes
/
playbook.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
- name: Global Linux configuration
hosts: all
vars_files:
- default.config.yml
pre_tasks:
- name: Verify Ansible meets setup version requirements
ansible.builtin.assert:
that: "ansible_version.full is version_compare('2.8', '>=')"
msg: "You must update Ansible to at least 2.8 to use this setup."
tags: ['always']
- name: Include playbook configuration
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ['always']
tasks:
- import_tasks: tasks/ssh_key.yml
tags: ['ssh', 'minimal']
- import_tasks: tasks/nvm.yml
tags: ['nvm']
roles:
- role: git
tags: ['git', 'minimal']
- role: vim
tags: ['vim', 'minimal']
- role: zsh
tags: ['zsh']
- role: chrome
tags: ['chrome']
- role: vscode
tags: ['vscode']
- role: docker
tags: ['docker']