blob: f0fbe9143fd4c16149fd30f06355fb43b79d125a (
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
|
- 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
#- name: setup server02
# hosts: server02
# become: true
# roles:
# - harden
# - tor
# - attackbox
# - sliver-c2
# - ssh-nginx-multiplex
|