当我在攻略中使用snow_record时,我得到了下面的错误。请帮帮忙。
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
tasks:
- name: calling variable which has user/pass
include_vars: /ansible/pass.yml
- name: read from snow
snow_record_find:
username: "{{ sn
运行ansible命令时,会显示以下错误:
Traceback (most recent call last):
File "/usr/local/bin/ansible", line 4, in
import('pkg_resources').run_script('ansible==2.0.0', 'ansible')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2805, in
working_set
仍然需要保留一些CentOS5主机,它们已将yum配置为使用如下的CentOS存储库。当在主机上使用yum时,这很好用。然而,当我尝试使用ansible来实现时,比如:
- name: "Install OS packages"
yum: pkg={{item}} state=installed
with_items:
- dos2unix
- vim
我得到了"msg": "python2 bindings for rpm are needed for this module. python2
我正在寻找一种方法来测试,在我的python脚本中,如果所述脚本是从Ansible运行的,那么我也可以通过shell运行它(用于运行单元测试等)。在不调用ansible playbook的情况下调用AnsibleModule将会无休止地等待永远不会到来的响应。
我希望不会有一个简单的测试,我必须以某种方式进行重构,但我对任何选择都持开放态度。
def main():
# must test if running via ansible before next line
module = AnsibleModule(
argument_spec=dict(
server=
我有一个Ansible Playbook,用于在我的Windows膝上配置WSL,最近重建了我的笔记本之后,我需要再次运行该剧本,但是它在以下消息中失败了:
The conditional check 'aptitude_installed is success' failed. The error was: no test named 'success'
line 1
The error appears to have been in '/mnt/c/source/richardslater/workstation-setup/wsl/plays
我正试图在我的系统中执行ansible。我想我搞砸了什么,无法运行ansible。当我运行ansible --version时,我看到以下错误:
krishnapatamset:bin krishna.patamsetti$ ansible --version
[WARNING]: log file at /var/log/ansible/ansible.log is not writeable and we cannot create it, aborting
ERROR! Unexpected Exception: No module named markupsafe
the ful
我和Ansible一起工作,我收集了一些角色,一切都很完美,直到最近我还可以使用我的角色等等。
我试着使用hashivault_write和hashivault_read模块(),但是当我在角色(来自)集合中使用它们时,它们似乎不起作用。
ERROR! couldn't resolve module/action 'hashivault_write'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in
在ansible文档中,有人说:
不可靠..。它还将在“./library”目录中和一个剧本一起查找模块。
在我的情况下,gaqzi.ssh-config提供的指令被ansible看到的唯一方法是显式地导出带有完整路径的ANSIBLE_LIBRARY ;(
没有该gaqzi.ssh-config模块,ansible就找不到它应该使用的文档。
在这里,我要做的是让它发挥作用:
$ cd playbook # my folder were the plabooks are
$ ansible-galaxy install -p library gaqzi.ssh-config # I