-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
何でしここで間違っている?