Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持ansible-playbook调用.yml文件方式来执行任务 #29

Open
scorpiopio opened this issue Jan 5, 2018 · 0 comments
Open

Comments

@scorpiopio
Copy link

scorpiopio commented Jan 5, 2018

1.我创建了一个test的project,在playbooks下面创建了roles
2.在playbook创建了一个setup.yml文件,内容如下:

  • 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
    有人遇到过这个问题么?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant