Skip to content

Instantly share code, notes, and snippets.

@cjac
Created August 9, 2020 23:08
Show Gist options
  • Save cjac/6c7ab99432f2b468aa84d49daf3b4ed4 to your computer and use it in GitHub Desktop.
Save cjac/6c7ab99432f2b468aa84d49daf3b4ed4 to your computer and use it in GitHub Desktop.
cjac@sh0:~/ansible$ cat apt-upgrade.yml
---
- name: apt upgrade
apt:
hosts: all
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 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: apt upgrade
^ here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment