So this is conditionals on Ansible:
- debug:
var: x
when: x is not defined
Is there anyway to apply conditionals for junos_commands? Like:
tasks:
- name: Show logs
junos_command:
commands:
- show interfaces
when: apply this condition