Syntax error in deploy.yml?
csharpe101 opened this issue · 1 comments
csharpe101 commented
Hey, below is an output from my terminal command trying to deploy unfetter with the command "ansible-playbook deploy.yml". I have properly configured hosts.ini, hosts_vars, and group_vars files to my knowledge.
But, I get the error that there is a syntax issue in a file I haven't touched, which prevents deployment. Can someone please help me fix this?
sensa@sensa-virtual-machine:~/unfetter-discover/unfetter/ansible$ ansible-playbook deploy.yml
ERROR! no action detected in task
The error appears to have been in '/home/sensa/unfetter-discover/unfetter/ansible/deploy.yml': line 14, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Start running the commands
^ here
csharpe101 commented
Oh, and here is the whole deploy.yml file:
###############################################################################$
This playbook manages the target hosts and calls "discover-tasks.yml" workho$
playbook.
Specific target hosts can be built using the following:
ansible-playbook -i dev discover.yml
###############################################################################$
-
name: Deploy Playbook
hosts: deployedtasks:
-
name: Start running the commands
import_tasks: discover-tasks.yml[ Read 15 lines ]
-