--- # tasks file for aruba_get-boot-info - name: Execute show ntp on the switch arubaoss_command: commands: ['show ntp status'] register: ntp - name: set facts for boot images ansible.builtin.set_fact: ntp_status: "{{ ((((ntp.stdout_lines[0][3]) | split(':'))[1]) | split(' '))[1] }}" - name: show primary boot image version debug: var: ntp_status