-
Notifications
You must be signed in to change notification settings - Fork 4
/
roles.yaml
69 lines (65 loc) · 2.24 KB
/
roles.yaml
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
---
# Workstation set-up that's done system-wide (and requires root privileges)
- hosts: "localhost"
connection: "local"
pre_tasks:
- name: "Fail if Ansible version is too old"
fail:
msg: "Workstation requires a minimum Ansible version of {{ ansible_minimum_version }}. Please update Ansible and run workstation.sh again."
when: "ansible_version.full is version(ansible_minimum_version, operator='lt', strict=True)"
- name: "abort execution on 32-bit environments"
fail:
msg: "These playbooks are now only available on 64-bit OSes"
when: 'ansible_architecture == "i386"'
become: yes
vars_files:
- "config.yaml"
- "versions.yaml"
tasks:
- import_role:
name: "setup"
tasks_from: "{{ tasks_from_file }}-system"
- import_role:
name: "common"
tasks_from: "{{ tasks_from_file }}"
- import_role:
name: "networking"
tasks_from: "{{ tasks_from_file }}"
- import_role:
name: "communication"
tasks_from: "{{ tasks_from_file }}"
- import_role:
name: "multimedia"
tasks_from: "{{ tasks_from_file }}"
- import_role:
name: "development"
tasks_from: "{{ tasks_from_file }}-system"
- import_role:
name: "containerization"
tasks_from: "{{ tasks_from_file }}"
# Workstation set-up that's done as the current user
- hosts: "localhost"
connection: "local"
pre_tasks:
- name: "Fail if Ansible version is too old"
fail:
msg: "Workstation requires a minimum Ansible version of {{ ansible_minimum_version }}. Please update Ansible and run workstation.sh again."
when: "ansible_version.full is version(ansible_minimum_version, operator='lt', strict=True)"
- name: "abort execution on 32-bit environments"
fail:
msg: "These playbooks are now only available on 64-bit OSes"
when: 'ansible_architecture == "i386"'
become: no
vars_files:
- "config.yaml"
- "versions.yaml"
tasks:
- import_role:
name: "setup"
tasks_from: "{{ tasks_from_file }}-user"
- import_role:
name: "development"
tasks_from: "{{ tasks_from_file }}-user"
- import_role:
name: "asdf"
tasks_from: "{{ tasks_from_file }}"