forked from lokori/flask-vuln
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
36 lines (31 loc) · 908 Bytes
/
playbook.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
- hosts: webservers
gather_facts: False
remote_user: ubuntu
tasks:
- name: install python 2
become: true
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
- name: ensure system packages are at the latest version
apt: pkg={{item}} state=latest update_cache=yes cache_valid_time=3600
become: true
with_items:
- git
- python
- python-pip
- name: install flask and gunicorn through pip
shell: pip install flask gunicorn
- name: checkout vuln app from GitHub
git:
repo: https://github.com/lokori/flask-vuln.git
dest: /home/ubuntu/flask-vuln
- name: Generate FI locale
become: true
shell: locale-gen fi_FI.UTF-8 en_US.UTF-8
- name: Copy FI locale to make life easier
become: true
copy:
src: fi-locale
dest: /etc/default/locale
owner: root
group: root
mode: 0644