diff options
author | heqnx <root@heqnx.com> | 2025-05-26 08:54:15 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-26 08:54:15 +0300 |
commit | b702fe9f7f8bf423f753ae89b9617aab2372c05e (patch) | |
tree | 09f1237b282709ef51e741a74b21005447e061d6 /playbook.yaml.example | |
parent | 08134048cb9a85508042cabd9aa3a39849eca2be (diff) | |
download | ansible-playbooks-b702fe9f7f8bf423f753ae89b9617aab2372c05e.tar.gz ansible-playbooks-b702fe9f7f8bf423f753ae89b9617aab2372c05e.zip |
added xrdp, added example configs, removing main ones
Diffstat (limited to 'playbook.yaml.example')
-rw-r--r-- | playbook.yaml.example | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/playbook.yaml.example b/playbook.yaml.example new file mode 100644 index 0000000..2274bdf --- /dev/null +++ b/playbook.yaml.example @@ -0,0 +1,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 |