【发布时间】:2013-10-22 14:10:56
【问题描述】:
- name: Go to the folder
command: chdir=/opt/tools/temp
当我运行我的剧本时,我得到:
TASK: [Go to the folder] *****************************
failed: [host] => {"failed": true, "rc": 256}
msg: no command given
非常感谢任何帮助。
【问题讨论】:
-
您究竟想通过更改活动目录做什么?
-
chdir 也是命令的一个属性。您可以执行命令并声明 chdir
command: ls chdir=/path/to/directory -
这和微软的ActiveDirectory没有关系吧?
标签: ansible