旧的ansible剧本每次执行

旧的ansible剧本每次执行

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

问题描述

我写了一本ansible(2.0)剧本,用于在盒子上安装声纳波贝.遇到问题时,我更改了声纳角色的细节.当我更改剧本时,似乎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剧本已在我的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剧本每次执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:53