diff options
Diffstat (limited to 'playbook.yaml')
-rw-r--r-- | playbook.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/playbook.yaml b/playbook.yaml new file mode 100644 index 0000000..f0fbe91 --- /dev/null +++ b/playbook.yaml @@ -0,0 +1,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 |