blob: 2274bdf3c0ea33a34e3bcd074d5dbf2738c4a5d7 (
plain)
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
|
- name: fail if system is not debian/ubuntu
hosts: all
gather_facts: true
tasks:
- name: check os family or distribution
ansible.builtin.assert:
that:
- "'debian' in ansible_facts.os_family.lower() or 'ubuntu' in ansible_facts.distribution.lower()"
fail_msg: "this playbook supports only debian-based systems"
- name: setup server01
hosts: server01
become: true
roles:
- harden
- tor
- attackbox
- sliver-c2
- ssh-nginx-multiplex
- ssh-port-fwd-user
- xrdp
#- name: setup server02
# hosts: server02
# become: true
# roles:
# - harden
# - tor
# - attackbox
# - sliver-c2
# - ssh-nginx-multiplex
|