From 6c961fa5d455f78dad68f64a45aa866e6944f636 Mon Sep 17 00:00:00 2001 From: lavado Date: Mon, 22 Apr 2019 06:53:41 -0500 Subject: [PATCH] Added log file to Ansible generator Change-Id: Icff07fa8d30c49133cefad191a6606813e7256f5 Signed-off-by: lavado --- .../generator/ansible-charm/templates/ansible_lib.py.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 b/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 index 9da74029..7492c6de 100644 --- a/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 +++ b/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 @@ -60,7 +60,8 @@ def create_ansible_cfg(): with open(ansible_config_path, 'w') as f: f.write('[defaults]\n') f.write('host_key_checking = False\n') - + # logs playbook execution attempts to the specified path + f.write('log_path = /var/log/ansible.log\n') # Function to find the playbook path def find(pattern, path): -- 2.25.1