You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an inventory file with the ip of the desired host. I do **ansible-playbook -i inventory tasks/main.yml**
This is the error I get.. I am using ubuntu 22.04 and my ansible version is ansible [core 2.13.4]
ERROR! 'include' is not a valid attribute for a Play
The error appears to be in '/home/pipi/Dev/CIS-Ubuntu-20.04-Ansible/tasks/main.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- include: section_1_Initial_Setup.yaml
^ here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created an inventory file with the ip of the desired host. I do
**ansible-playbook -i inventory tasks/main.yml**
This is the error I get.. I am using ubuntu 22.04 and my ansible version is ansible [core 2.13.4]
Beta Was this translation helpful? Give feedback.
All reactions