first commit
This commit is contained in:
13
roles/aruba_get-ntp-info/tasks/main.yml
Normal file
13
roles/aruba_get-ntp-info/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user