847bb8666d
Change-Id: I50f75f8f8ed200b1c70f834973463c2f7343ed1a
17 lines
419 B
YAML
17 lines
419 B
YAML
---
|
|
- name: Run a command
|
|
gather_facts: False
|
|
hosts: seed-hypervisor:seed:overcloud
|
|
tasks:
|
|
- name: Run a command
|
|
shell: "{{ host_command_to_run }}"
|
|
register: command_output
|
|
- name: Print stdout
|
|
debug:
|
|
msg: "{{ command_output.stdout }}"
|
|
when: show_output | bool
|
|
- name: Print stderr
|
|
debug:
|
|
msg: "{{ command_output.stderr }}"
|
|
when: show_output | bool
|