This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaybook.yml
102 lines (88 loc) · 3.59 KB
/
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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
---
- hosts: 127.0.0.1
connection: local
gather_facts: true # Run gather_facts to define ansible_env.HOME
vars_files:
- ./config.yml
roles:
#### System and terminal-related changes. ##################################
- role: roles/sysctl
tags: [sysctl]
- role: roles/dotfiles
tags: [dotfiles]
- role: vendor/roles/fish
when: fish.install|bool
vars:
fish_set_as_default_shell: '{{ fish.set_default|bool }}'
omf_theme: '{{ fish.theme }}'
omf_packages: '{{ fish.packages }}'
tags: [fish]
#### Languages and interpreters. ###########################################
- role: vendor/roles/node
when: node.install|bool
vars:
nvm_node_version: '{{ node.version }}'
nvm_npm_global_packages: '{{ node.npm_global_packages }}'
tags: [node, nvm, npm]
- role: roles/python3
when: python3.install|bool
vars:
python3_version: '{{ python3.version }}'
python3_pip3_global_packages: '{{ python3.pip3_global_packages }}'
tags: [python, python3, pip3, pip]
- role: vendor/roles/php-composer
when: php.install|bool
vars:
php_composer_global_packages: '{{ php.composer_global_packages }}'
tags: [php, composer]
#### Code Editors and IDEs. ################################################
- role: vendor/roles/jetbrains-toolbox
when: apps.jetbrains_toolbox.install|bool
vars:
jetbrains_toolbox_version: "{{ apps.jetbrains_toolbox.version | default('2.0.0') }}"
tags: [ide, jetbrains, jetbrains-toolbox]
- role: vendor/roles/visual-studio-code
when: apps.visual_studio_code.install|bool
ignore_errors: yes # Ignore errors caused by missing or removed extensions.
vars:
users:
- username: '{{ lookup("env", "USER") }}'
visual_studio_code_extensions: '{{ apps.visual_studio_code.extensions }}'
tags: [editor, microsoft, code, vscode, visual-studio-code]
#### Cloud tools and utils. ################################################
- role: vendor/roles/aws-cli
when: cloud.aws_cli.install|bool
tags: [cloud, aws, aws-cli]
- role: vendor/roles/google-cloud-sdk
# RedHat derivative distros does not support this role.
when: cloud.gcloud.install|bool and ansible_facts["os_family"] != 'RedHat'
vars:
gcloud_version: '{{ cloud.gcloud.version }}'
gcloud_install_from_package_manager: false
gcloud_install_dir: '/.gcp' # Installs SDK to '$HOME/.gcp/google-cloud-sdk'
gcloud_additional_components: '{{ cloud.gcloud.components }}'
gcloud_prefer_python3: true
tags: [cloud, gcloud, google-cloud]
- role: vendor/roles/terraform
become: true
when: cloud.terraform.install|bool
tags: [cloud, terraform]
#### Docker things. ########################################################
- role: vendor/roles/docker
vars:
docker_channel: stable
tags: [docker]
- role: vendor/roles/docksal
when: docker.install|bool and docksal.install|bool
vars:
docksal_global_config: '{{ docksal.config }}'
tags: [docksal]
#### Apps install. #########################################################
# Note: it's the most time-consuming process, so it needs to be happening at
# the very end of the playbook to make sure that all the rest is fine.
- role: roles/apps
vars:
apps_packages: '{{ apps.packages }}'
apps_flatpak_packages: '{{ apps.flatpak }}'
apps_deb_urls: '{{ apps.deb_urls }}'
tags: [apps, packages, flatpak]