Created
August 9, 2020 23:08
-
-
Save cjac/6c7ab99432f2b468aa84d49daf3b4ed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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