forked from notthebee/ansible-easy-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.yml
executable file
·63 lines (50 loc) · 1.2 KB
/
run.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
#!/usr/bin/env ansible-playbook
---
- name: Install and configure ansible-easy-vpn
hosts: all
become: true
vars_files:
- custom.yml
- secret.yml
handlers:
- name: Import global handlers
ansible.builtin.import_tasks: handlers/main.yml
pre_tasks:
- name: Set the AWS and Letsencrypt staging facts
ansible.builtin.set_fact:
aws: "{{ lookup('ansible.builtin.env', 'AWS_EC2') == 'true' }}"
letsencrypt_staging: "{{ [lookup('ansible.builtin.env', 'LETSENCRYPT_STAGING') | lower | default('no')] }}"
roles:
- role: system
tags:
- system
- role: geerlingguy.docker
tags:
- docker
- role: docker_network
tags:
- docker
- role: fail2ban
when: enable_fail2ban | default(False)
tags:
- fail2ban
- role: dns
when: enable_adguard_unbound_doh | default(False)
tags:
- dns
- role: authelia
tags:
- authelia
- role: bunkerweb
tags:
- bunkerweb
- role: wireguard
tags:
- wireguard
- role: chriswayg.msmtp-mailer
when: email_password is defined
tags:
- msmtp
- role: ssh
tags:
- ssh