如何检查Ansible安装了什么? [英] How to check what installed by Ansible?

查看:255
本文介绍了如何检查Ansible安装了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Github克隆了一个目录,并设置了本身称为Ansible的目录.现在它确实制作了虚拟机,并安装了许多东西.我无法将所有安装的文件都保存在虚拟机上.最后的脚本给出了以下输出

I cloned a Directory from Github and setup that itself called Ansible. Now it did make a virtual machine along with installed many things. I could not save all installed on my virtual box. The script in the end gave following output

: ok=29   changed=17   unreachable=0    failed=0   

现在如何查看Virtual Box上安装了什么?

Now How do I see what was installed on Virtual Box?

推荐答案

在ansible-playbook命令中添加--list-tasks选项,以列出ansible执行的高级任务.哪个应该使您了解ansible在VM上进行了什么编排.

Add --list-tasks option to the ansible-playbook command to list out a high level tasks been executed by ansible. Which should give you a idea of what ansible has orchestrated on the VM.

ansible-playbook --list-tasks playbook.yml

这篇关于如何检查Ansible安装了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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