You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hosts: node-all
remote_user: root
roles:
- 01-init
3.通过命令行执行是没有问题的,ansible-playbook setup.yml -i ../inventories/hosts
4.在浏览器上面执行会报错,ERROR: hosts is not a legal parameter in an Ansible task or handler
有人遇到过这个问题么?
The text was updated successfully, but these errors were encountered:
1.我创建了一个test的project,在playbooks下面创建了roles
2.在playbook创建了一个setup.yml文件,内容如下:
remote_user: root
roles:
- 01-init
3.通过命令行执行是没有问题的,ansible-playbook setup.yml -i ../inventories/hosts
4.在浏览器上面执行会报错,ERROR: hosts is not a legal parameter in an Ansible task or handler
有人遇到过这个问题么?
The text was updated successfully, but these errors were encountered: