Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
- name: run show version on remote devices
  esr_command:
    commands: show version

- name: run show version and check to see if output contains 1.4.0.110
  esr_command:
    commands: show version
    wait_for: result[0] contains 1.4.0.110

- name: run multiple commands on remote devices
  esr_command:
    commands:
      - show version
      - show interfaces status

- name: run multiple commands and evaluate the output
  esr_command:
    commands:
      - show version
      - show interfaces status
    wait_for:
      - result[0] contains 1.4.0.110
      - result[1] contains bridge1

- name: run commands that require answering a prompt
  esr_command:
    commands:
      - command: 'reloadcopy system:default-config system:candidate-config'
        prompt: 'Do you really want to reload system ? (y/N)continue?'
        answer: 'y'


Возвращаемые значения

...