ansible-junos-stdlib icon indicating copy to clipboard operation
ansible-junos-stdlib copied to clipboard

Implementation 'action: "shutdown"' in module juniper.device for Juniper devices running VMHOST

Open biepio opened this issue 3 years ago • 0 comments

  • Feature Idea

Module Name

juniper.device collection and Python libraries version

Summary

Could you implement in this module working 'action: "shutdown"' for Juniper devices running VMHOST ? Currently for VMHOST only 'action: "reboot"' working correctly. For 'normal' Junos both actions work correctly.

Steps to reproduce


---
 
- name: Reboot VM Hosts
  hosts: po_vmhost
  connection: local
  gather_facts: no
  tasks:
          
  - name: Reboot VM Hosts
    juniper.device.system:
      action: "reboot"
#     action: "shutdown"
      vmhost: True
      all_re: True
    register: result
 
  - name: Print result
    debug:
      var: result 


Expected results

Power-off Juniper device running VMHOST

Actual results

FAILED! => {"changed": false, "msg": "The vmhost option can only be used when the action option has the value \"reboot\"."}

biepio avatar Jul 07 '22 09:07 biepio