Ansible beginner here, so maybe I'm doing something stupid. But running the example playbook gets me this:
$ ansible-playbook workstations-ntp-conf.yml
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)
Syntax Error while loading YAML.
mapping values are not allowed in this context
The error appears to be in '/home/jakob.donotbackup/code/mfg-ansible/workstations-ntp-conf.yml': line 4, column 22, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- systemd-timesyncd
timesync_timezone: Europe/Berlin
^ here
Ansible beginner here, so maybe I'm doing something stupid. But running the example playbook gets me this:
yamllint.com does not like it either: