Skip to content

run_device_commands.yml #12

@yalindogusahin

Description

@yalindogusahin

I think there is a typo in the "run_device_commands.yml" file.

  • hosts: all
    gather_facts: false
    collections:

    • zpe.device_connection
      vars_prompt:
      • name: target
        prompt: Enter target name, either ttyS or current device name
      • name: username
        prompt: Enter username
      • name: password
        prompt: Enter target password
      • name: target (It should be target_os)
        prompt: Enter target_os [generic, ios, junos,panos,fortios]
        default: generic

    tasks:

    • name: Run commands
      run_command:
      target: "{{ target }}"
      username: "{{ username }}"
      password: "{{ password }}"
      target_os: "{{ target_os }}"
      cmds:
      - 'show version'
      register: cmds_output

    • name: Print command results
      debug:
      var: cmds_output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions