Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in deploy.yml? #1608

Open
csharpe101 opened this issue Jul 23, 2019 · 1 comment
Open

Syntax error in deploy.yml? #1608

csharpe101 opened this issue Jul 23, 2019 · 1 comment

Comments

@csharpe101
Copy link

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
Copy link
Author

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: deployed

    tasks:

    • name: Start running the commands
      import_tasks: discover-tasks.yml

                             [ Read 15 lines ]
      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant