1
私はちょっと実験を始めました。私は最初の簡単なプレイブックを書こうとしています。検索からタスクでの可能なプレイブックの構文エラー:
utility:~/scripts/ansible# ansible-playbook --check add-ansible-user.yml
ERROR! Syntax Error while loading YAML.
The error appears to have been in '/root/scripts/ansible/add-ansible-user.yml': line 8, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
^here
が、私は最善の策は、私がインデント問題を抱えているということです信じて、私はこれは、次の取得を実行すると は、しかし、私は、タスクkeyworkで
---
name: add ansible user
hosts: all
become: true
become_method: sudo
become_user:root
tasks:
- user:
name: ansible
groups: ansible
構文エラーを取得していますしかし、私はそれを変更しようとしているどのように、私はそれがあまりにも仕事を得ることはできません。