-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
41 lines (37 loc) · 1011 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
36
37
38
39
40
41
---
- name: Installs and configure nodes
gather_facts: true
hosts: all
become: true
become_user: root
tasks:
- name: Check test mode
ansible.builtin.set_fact:
playbook_testing: "{{ lookup('ansible.builtin.env', 'PLAYBOOK_TESTING') }}"
- name: Include testing vars
ansible.builtin.include_vars:
file: ./tests/vars/test.yml
when: playbook_testing
- name: Include preflight role
ansible.builtin.include_role:
name: preflight
apply:
tags: preflight
tags: [always, preflight]
- name: Include service Role
ansible.builtin.include_role:
name: service
apply:
tags: service
tags: [always, service]
- name: Installs and configure workstations
gather_facts: true
hosts: workstation
become: true
tasks:
- name: Include service Role
ansible.builtin.include_role:
name: workstation
apply:
tags: workstation
tags: [always, workstation]