task/ansible: check for archive before using it
Running a non-scheduled job you may not have archiving configured.
@@ -114,6 +114,7 @@ class Ansible(Task):
self.generated_inventory = False
self.generated_playbook = False
self.log = logging.Logger(__name__)
+ if ctx.archive:
self.log.addHandler(logging.FileHandler(
os.path.join(ctx.archive, "ansible.log")))
