TG
- name: Start socket listenerОпираясь на следующее правило:
shell: "nc -kl {{ '-u' if item.proto == 'udp' else '' }} 0.0.0.0 {{ item.port }} --sh-exec=/bin/false 2>&1 &"
with_items:
- "{{ win_portcheck_map }}"
- "{{ dp_portcheck_map }}"
async: 120
poll: 0
no-changed-when
Commands should not change things if nothing needs doing
Commands should either read information (and thus set changed_when) or not do something if it has already been done (using creates/removes) or only do it if another check has a particular result (when)
Не совсем понимаю, что он отменя хочет. Что значит nothing needs doing, когда все очень даже needs?