ansible-api icon indicating copy to clipboard operation
ansible-api copied to clipboard

A RESTful HTTP Api for Ansible

Results 4 ansible-api issues
Sort by recently updated
recently updated
newest added

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. ![image](https://user-images.githubusercontent.com/18606660/60568528-aaa7df00-9d9f-11e9-934a-89f0442e6774.png)