ansible-api
ansible-api copied to clipboard
A RESTful HTTP Api for Ansible
In playbook mode, the playbook is executed for all hosts defined in the playbook file (hosts parameter) instead of the devices defined by h parameter. In controller.py (line 169), ansible_runner.interface.run()...
2019-10-10 06:14:40 | ERROR - argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/usr/local/python37/lib/python3.7/site-packages/ansible_api/controller.py", line 106, in post response = await loop.run_in_executor(pool, self.run, target, name,...
This line https://github.com/lfbear/ansible-api/blob/7a7548b01e67d6de57d2536ff07796569c79e31c/src/ansible_api/tool.py#L25 Should be: `err_handler = logging.handlers.TimedRotatingFileHandler( Config.get('log_path'), when='midnight')` Very nice tool.
Starting ansible-api with the - D parameter should run in the background rather than still in the shell session. 