$# --The number of arguments supplied to a script 

Example :- ./test.sh 1 2 3 4 --> $# = value will be 4 

ansible-playbook main.yml -e "Var1=1 Var2= 2Var3=3 Var4=4"

How can we get a total number of arguments? 




-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to