-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.yml
51 lines (45 loc) · 1.2 KB
/
prepare.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
---
- name: Prepare
hosts: all
roles:
- reallyenglish.apt-repo
- geerlingguy.java
- geerlingguy.git
- nkakouros.easyrsa
vars:
apt_repo_to_add: >-
{{
['ppa:webupd8team/java']
if ansible_distribution_version != '20.04'
and ansible_distribution == 'Ubuntu'
else []
}}
java_packages:
- openjdk-8-jre
easyrsa_servers:
- name: elastic
pass: 'nk}$Q%];a3Gy$E!QvT8E'
easyrsa_clients:
- name: logstash
pass: 'nk}$Q%];a3Gy$E!QvT8E'
- name: kibana-backend
pass: 'nk}$Q%];a3Gy$E!QvT8E'
- name: beats
pass: 'nk}$Q%];a3Gy$E!QvT8E'
easyrsa_to_pkcs12: "{{ easyrsa_clients + easyrsa_servers }}"
easyrsa_to_pkcs8: "{{ easyrsa_clients + easyrsa_servers }}"
easyrsa_to_pkcs1: "{{ easyrsa_clients + easyrsa_servers }}"
easyrsa_download: []
easyrsa_download_pki: true
easyrsa_download_dir: '~/'
pre_tasks:
- name: Install packages required by ansible modules
package:
name: "{{ package }}"
loop: "{{ packages }}"
loop_control:
loop_var: package
vars:
packages:
- gnupg
- software-properties-common