- 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