2
是否有一種簡單的方法來找回如何精確地完成劇本(劇本)試圖做的事情?如何從完整的劇本中獲取命令
E.g.我有
- name: Install required packages
yum: name={{item}} state=present
with_items:
- nmp
become: True
而且我想:
sudo yum install nmp
這麼說,我想知道是什麼命令(OS級)ansible運行。 基本上,我需要的逆過程:Ansible and Playbook. How to convert shell commands into yaml syntax?
只需閱讀代碼:[''yum.py'](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/packaging/os/yum.py)。 – techraf
詳細說明'-vvvv' – spinkus
guys(@techraf,@spinkus),是否有一個簡單的問題是如何獲取命令 - 不從-vvvv爬行大量日誌或讀取代碼。我需要100個命令在劇本中使用 – xhudik