Ich habe mein erstes Playbook und es schlägt fehl. Ich nehme an, es ist ein Syntaxfehler, aber da ich kein Programmierer bin, habe ich keine Ahnung, warum YAML fehlschlägt? Hat es mit Abstand zu tun?Ansible YAML Syntaxfehler im einfachen Playbook
Hier ist, was ich habe:
---
- 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