0
첫 플레이 북이 있는데 실패했습니다. 나는 그것이 구문 오류라고 생각하지만 나는 코더가 아니기 때문에 YAML이 실패하는 이유를 모른다. 간격과 관련이 있습니까? 여기간단한 플레이 북에서 YAML 구문 오류가 발생할 수 있습니다.
내가 무엇을 가지고 : 첫째
---
- name: Update all packages to the latest version
become: true
apt:
update_cache: yes
upgrade: dist
- name: Remove useless packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes
ERROR! Syntax Error while loading YAML.
The error appears to have been in '/home/pi/playbooks/update-apt.yml': line 3, column 11, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Update all packages to the latest version
become: true
^here