-
Notifications
You must be signed in to change notification settings - Fork 741
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
Playbook won't run for hardening #462
Comments
The error means that ansible cannot connect to your local server via ssh. This has nathing to do with the collection. Try this:
|
Thanks!!! But what about the 2nd error? |
If you fill out the bug-template that we provide, I can try to help you. What Ansible version do you use. How did you install the collection? What other collections are installed? |
Bug template? Didn't see one. |
Do you have the community.general collection installed?
|
Ok... I installed it... put it into play.yml.... and now I'm getting this
|
Your indentation is probably wrong. Please show the code you used. |
You told me to include in the playbook no? I tried this
and this . nothing works.
|
You probably should read some introductional tutorials on Ansible to get the basics before trying to use mroe complicated collections. Use this:
|
I don't understand...
I installed the module with ansible galaxy and I'm still getting this error. At this point I'm almost ready to give up and use another hardening script.... |
No, you didn't, the code you showed and the code I showed are different.
This seems to me that Ansible doesn't use the collection but instead a role. As this is not a support forum and your issue not a bug, please read up on the basic Ansible concepts. |
This is what I used (exactly what you told me to do)
this is the error i get
am i missing something here ??? i'm sorry if i'm being a burden I really am |
I'm thinking, maybe this error is from an older version of currently we a re declaring a dependency on ansible-collection-hardening/galaxy.yml Line 23 in 2c5cf45
|
I jsut checked, @Mike-Zelixon, if you still have problems, please open a new issue. Thanks! |
Hi guys,
I'm an ansible n00b and the os hardening isn't working for me.
I wrote a simple playbook like in the default
and added a hosts file with localhost as host.
I run ansible-playbook -i host play.yml and this is what I get
if anyone can help me i would greatly appreciate it !!!!!!
The text was updated successfully, but these errors were encountered: