-2
我想写安装Apache一个剧本,但我得到了以下错误:YAML语法错误(Ansible playboook)
The offending line appears to be:
tasks:
- name: command to install apache
^here
这里是我的YAML代码:
---
- hosts: all
tasks:
- name: command to install apache
sudo: yes
yum: name=httpd state=latest
service: name=httpd state=running
有什么事情这里错了吗?