Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. - name: setting fact for service name
  2. set_fact:
  3. servicename: TCP-{{port}}
  4. when: >
  5. protocol == "TCP" or protocol == "tcp"
  6.  
  7. - name: setting fact for service name
  8. set_fact:
  9. servicename: UDP-{{ port }}
  10. when: >
  11. protocol == "UDP" or protocol == "udp"
  12.  
  13. - name: setting fact for service name
  14. set_fact:
  15. servicename: "ALL"
  16. when: >
  17. protocol == "all" or protocol == "ALL"
  18.  
  19. - name: setting fact for service name
  20. set_fact:
  21. protocolname: "tcp_udp_sctp"
  22. when: >
  23. protocol == "TCP" or protocol == "tcp"
  24.  
  25. - name: setting fact for service name
  26. set_fact:
  27. protocolname: "tcp_udp_sctp"
  28. when: >
  29. protocol == "UDP" or protocol == "udp"
  30.  
  31. - name: setting fact for service name
  32. set_fact:
  33. protocolname: "ALL"
  34. when: >
  35. protocol == "all" or protocol == "ALL"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement