Added log file to Ansible generator 21/7421/3
authorlavado <glavado@whitestack.com>
Mon, 22 Apr 2019 11:53:41 +0000 (06:53 -0500)
committerlavado <glavado@whitestack.com>
Thu, 30 May 2019 23:12:21 +0000 (18:12 -0500)
Change-Id: Icff07fa8d30c49133cefad191a6606813e7256f5
Signed-off-by: lavado <glavado@whitestack.com>
descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2

index 9da7402..7492c6d 100644 (file)
@@ -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):