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

查看:23
本文介绍了如何检查 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?

推荐答案

将 --list-tasks 选项添加到 ansible-playbook 命令以列出 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天全站免登陆