I got message as task failed with the below reason.
Check the below attached image for reference
I have done the below steps to complete the tasks :-
firewall-cmd --zone=public --add-port=8094/tcp --permanent
iptables-save | grep 8094
Check the below attached image to ACCEPT the connection from 8094 port.
To block all connection on apache port I have done the below tasks :-
iptables -A INPUT -p tcp --destination-port 3003 -j DROP
service iptables save
Check the below image output for DROP the 3003 port connection.
Also, please let me know what I have done wrong while doing this task.