Skip to content

Commit

Permalink
Merge STDOUT & STDERR of Ansible plays (#704)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt committed Nov 29, 2023
1 parent fad312a commit b00917e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions osism/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)
else:
Expand All @@ -123,7 +123,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)

Expand All @@ -138,7 +138,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)

Expand All @@ -154,7 +154,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
)

# execute local netbox playbooks
Expand All @@ -168,7 +168,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
)

# execute all other roles
Expand All @@ -182,7 +182,7 @@ def run_ansible_in_environment(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
STDERR of Ansible runs is now merged with STDOUT. This way the STDERR of Ansible runs
is also visible in the STDOUT of the OSISM CLI.

0 comments on commit b00917e

Please sign in to comment.