-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
有什麼事情這裏錯了嗎?