Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible 模块操作日志 #73

Open
zengshuaishuai opened this issue Apr 25, 2020 · 4 comments
Open

ansible 模块操作日志 #73

zengshuaishuai opened this issue Apr 25, 2020 · 4 comments

Comments

@zengshuaishuai
Copy link

我在使用ansible模块执行一些命令后,在模块操作日志里面没有查到我的执行日志,也没写入到对应的数据库表里面

@pythonzm
Copy link
Owner

操作日志是通过celery异步写入数据库的,看一下celery是否运行正常

@zengshuaishuai
Copy link
Author

操作日志是通过celery异步写入数据库的,看一下celery是否运行正常

我的redis有设置密码,我修改了如下的代码
image

image

image

但是执行记录还是没有写到数据库里面,我看了下worker.log 提示如下
image
如果我redis不设置密码,数据库是有记录的,请问这是哪里的问题

@pythonzm
Copy link
Owner

pythonzm commented May 8, 2020

如果redis设置了密码,需要把Ops/celery.py 中的broker也配上密码,比如:redis://:123456@127.0.0.1:6379/0

@zengshuaishuai
Copy link
Author

如果redis设置了密码,需要把Ops/celery.py 中的broker也配上密码,比如:redis://:123456@127.0.0.1:6379/0

问题已经解决了 谢谢大佬解答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants