forked from picoCTF/picoCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
36 lines (34 loc) · 1.15 KB
/
site.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
---
# Playbook to deploy the entire picoCTF environment
#
# You should not need to edit this file.
#
# Notice that there are very few changes from infra_local/site.yml. Simply:
# 1. The inclusion of the vault.yml vars_file for sensitive variables.
# 2. Different AWS specific bootstrap tasks.
# 3. The addition of a certbot role for automatically obtaining SSL/TLS
# certificates from Let's Encrypt if your configuration is using domain names.
- hosts: shell
become: yes
become_method: sudo
vars_files:
- "vault.yml"
pre_tasks:
- import_tasks: "./tasks/aws_shell_bootstrap.yml"
roles:
- {role: common , tags: ["common"]}
- {role: pico-docker, tags: ["docker"] , when: enable_docker}
- {role: certbot , tags: ["certbot"] , when: enable_certbot}
- {role: pico-shell , tags: ["shell"]}
- hosts: web
become: yes
become_method: sudo
vars_files:
- "vault.yml"
pre_tasks:
- import_tasks: "./tasks/aws_web_bootstrap.yml"
roles:
- {role: common , tags: ["common"]}
- {role: mongodb , tags: ["db"]}
- {role: certbot , tags: ["certbot"], when: enable_certbot}
- {role: pico-web , tags: ["web"]}