Skip to content

Instantly share code, notes, and snippets.

@cjac
Created August 9, 2020 21:57
Show Gist options
  • Save cjac/ce48aa4fcae623a7d8d6f3eed6e5985f to your computer and use it in GitHub Desktop.
Save cjac/ce48aa4fcae623a7d8d6f3eed6e5985f to your computer and use it in GitHub Desktop.
cjac@sh0:~/ansible$ cat apt-upgrade.yml
- apt: name=* upgrade=dist update_cache=True
cjac@sh0:~/ansible$ ansible-playbook apt-upgrade.yml
ERROR! 'apt' is not a valid attribute for a Play
The error appears to be in '/home/cjac/ansible/apt-upgrade.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- apt: name=* upgrade=dist update_cache=True
^ here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment