Ansible Playbook Error: Missing 'system' Role and Invalid Block Attribute #50
Unanswered
jamesb5959
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm encountering issues while trying to run your Ansible, and I'm hoping to get some guidance. I apologize for the inconvenience I've never worked with Ansible before, so I appreciate any help you can provide.
ansible-galaxy collection install -r requirements.yml
This step completed without any issues.
2. I then executed the playbook using:
ansible-playbook -i inventory arch.yml
The Errors I Encountered
Error 1: Missing Role
The playbook complains that it can’t find the system role:
ERROR! the role 'system' was not found in /home/user/.config/ansible/roles:/home/user/.config/ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/user/.config/ansible
The error points to line 4 of arch.yml:
Error 2: Invalid Block Attribute
After attempting to fix the role issue (such as copying directories or tweaking arch.yml), I encountered another error:
The offending block in the tasks file starts with:
What I've Tried
Neither approach has resolved the issues.
Any help or guidance would be greatly appreciated. Thanks you!
Beta Was this translation helpful? Give feedback.
All reactions