-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdeploy_freeton_node.yml
48 lines (44 loc) · 1.14 KB
/
deploy_freeton_node.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
---
- hosts: freeton_node
become: true
become_method: sudo
any_errors_fatal: true
vars_files:
- vars/freeton_node.yml
roles:
- freeton_node_flush_db
tags: [ "never", "flush" ]
- hosts: freeton_node
become: true
become_method: sudo
gather_facts: true
any_errors_fatal: true
vars_files:
- vars/freeton_node.yml
- vars/system.yml
- vars/monitoring.yml
pre_tasks:
- name: Checking distribution
fail:
msg: "{{ ansible_distribution }} is not supported"
when: ansible_distribution not in os_valid_distributions
- name: Checking version of OS distribution
fail:
msg: "{{ ansible_distribution_version }} of {{ ansible_distribution }} is not supported"
when: ansible_distribution_version is version_compare(os_minimum_versions[ansible_distribution], '<')
roles:
- system
- freeton_node_compile
- freeton_node_deploy
- monitoring_agent
tags: [ "basic" ]
- hosts: monitoring_server
become: true
become_method: sudo
gather_facts: true
any_errors_fatal: true
vars_files:
- vars/monitoring.yml
roles:
- monitoring_server
tags: [ "monitoring" ]