旧的 ansible playbook 每次都执行 [英] Old ansible playbook executes everytime

查看:43
本文介绍了旧的 ansible playbook 每次都执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了 ansible(2.0) playbook,用于在盒子上安装 sonarqube.当我遇到问题时,我更改了 sonarqube 角色中的一个细节.当我改变我的剧本时,似乎 ansible 没有检测到变化.我试过评论/删除任务.我用过 --flush-cache,但没用.

I have written an ansible(2.0) playbook for installing sonarqube on a box. I changed a detail in the sonarqube role as I was facing an issue. It seems like ansible doesn't detect the change as I change my playbook. I have tried commenting/ deleting the tasks. I have used --flush-cache, but it didn't work.

任何帮助将不胜感激.如果我需要任何其他细节,请告诉我.

Any help will be appreciated. Please let me know if any other detail is required from my side.

推荐答案

很奇怪的问题.ansible playbook 已签入我的 git 存储库.

Very weird issue. The ansible playbook was checked-in my git repository.

在旅途中修改代码不起作用.我必须提交更改并拉取更改以使其工作.看起来缓存来自 git 端.

On the go modifications of the code was not working. I had to commit the changes and pull the changes to make it work. Looks like the caching was from git side.

这篇关于旧的 ansible playbook 每次都执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆