Files
2024-07-12 12:58:40 +02:00

14 lines
393 B
YAML

---
# 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