Skip to content

Instantly share code, notes, and snippets.

@cjac
Created August 9, 2020 23:13
Show Gist options
  • Save cjac/e78607bf79270302bedfb35e85ceee52 to your computer and use it in GitHub Desktop.
Save cjac/e78607bf79270302bedfb35e85ceee52 to your computer and use it in GitHub Desktop.
cjac@sh0:~/ansible$ cat apt-upgrade.yml ; ansible-playbook apt-upgrade.yml
---
- hosts: all
tasks:
- apt:
name: *
upgrade: dist
update_cache: True
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.
did not find expected alphabetic or numeric character
The error appears to be in '/home/cjac/ansible/apt-upgrade.yml': line 5, column 14, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- apt:
name: *
^ here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment