Disable ansible logging when invoked via subprocess
Overwrite the default ansible log path in sysinv-conductor.
The output of ansible playbook executed by conductor is already
directed to sysinv log. The default ansible logging to the
playbook user's home directory (/root in this case) is unnecessary
and can exhaust rootfs over time.
Test:
- restart sysinv-conductor
- verify that the kube networking and static images playbooks
are executed and output are logged in sysinv log
- verify that /root/ansible.log does not exist
Closes-Bug: 1895607
Change-Id: I658273151d05571c2f84338431873cb27011284c
Signed-off-by: Tee Ngo <email address hidden>
Reviewed: https:/ /review. opendev. org/754119 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=59cd514947a c7c5f164c218d3c c61de4a1a8919b
Committed: https:/
Submitter: Zuul
Branch: master
commit 59cd514947ac7c5 f164c218d3cc61d e4a1a8919b
Author: Tee Ngo <email address hidden>
Date: Thu Sep 24 10:57:05 2020 -0400
Disable ansible logging when invoked via subprocess
Overwrite the default ansible log path in sysinv-conductor.
The output of ansible playbook executed by conductor is already
directed to sysinv log. The default ansible logging to the
playbook user's home directory (/root in this case) is unnecessary
and can exhaust rootfs over time.
Test:
- restart sysinv-conductor
- verify that the kube networking and static images playbooks
are executed and output are logged in sysinv log
- verify that /root/ansible.log does not exist
Closes-Bug: 1895607 1c2f84338431873 cb27011284c
Change-Id: I658273151d0557
Signed-off-by: Tee Ngo <email address hidden>