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

ERROR: set_fact is not a legal parameter in an Ansible task or handler #102

Closed
0vermind opened this issue Mar 28, 2015 · 7 comments
Closed

Comments

@0vermind
Copy link

Hi guys great project!
Just installed via apt + pip (ubuntu lts 14.04) following the docs, but i get when i try to start debops in myproject dir.
What kind of problem could it be?

ERROR: set_fact is not a legal parameter in an Ansible task or handler

@drybjed
Copy link
Member

drybjed commented Mar 28, 2015

@0vermind How did you install Ansible? It looks like you don't have Ansible modules installed.

@0vermind
Copy link
Author

I installed it via apt and I'm sure plugins are there because I can use words like apt: or user: which are core modules.

@drybjed
Copy link
Member

drybjed commented Mar 28, 2015

@0vermind In that case set_fact should also work because it's a core module... Did you install current stable Ansible (1.9) ?

@0vermind
Copy link
Author

you where right but I don-t understand what is happening:
the playbooks in /debops is empty!

ansible 1.5.4

I was hoping to have a newer version.

Thanks for the hints. I am Upgrading right now.

@drybjed
Copy link
Member

drybjed commented Mar 28, 2015

After you install debops through pip, you need to run debops-update to download all the roles and playbooks from GitHub.

@0vermind
Copy link
Author

Shame on me, I was too distracted then I was following the guide. I managed to run debops flawlessly after the ugrade.
I still have a bit of problems accessing a server using my ssh key but I digging into that. Using ssh from command line works,

sss [server] -i /path/to/key

but not from ansible or debops.
Thanks a lot for the fast help, wow, insane.

@drybjed
Copy link
Member

drybjed commented Mar 29, 2015

@0vermind Ansible / DebOps uses your ssh settings to access the remote hosts. If you use a different key than ~/.ssh/id_rsa, then you need to point to that key in the Ansible inventory, using ansible_ssh_authorized_key parameter, IIRC. Or you could set it up in ~/.ssh/config as well, just remember to use ssh connection plugin in Ansible instead of paramiko.

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

2 participants