Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: setting fact for service name
- set_fact:
- servicename: TCP-{{port}}
- when: >
- protocol == "TCP" or protocol == "tcp"
- - name: setting fact for service name
- set_fact:
- servicename: UDP-{{ port }}
- when: >
- protocol == "UDP" or protocol == "udp"
- - name: setting fact for service name
- set_fact:
- servicename: "ALL"
- when: >
- protocol == "all" or protocol == "ALL"
- - name: setting fact for service name
- set_fact:
- protocolname: "tcp_udp_sctp"
- when: >
- protocol == "TCP" or protocol == "tcp"
- - name: setting fact for service name
- set_fact:
- protocolname: "tcp_udp_sctp"
- when: >
- protocol == "UDP" or protocol == "udp"
- - name: setting fact for service name
- set_fact:
- protocolname: "ALL"
- when: >
- protocol == "all" or protocol == "ALL"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement