-
Notifications
You must be signed in to change notification settings - Fork 2
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
cnspec scan via ansible inventory #455
Comments
What shell are you using, @atomic111 |
i use zsh. I think we have two issues. At first the flag ansible-inventory -i inventory-test.yml --list | cnspec scan --inventory-format-ansible --insecure
Error: unknown flag: --insecure if i remove the the ansible-inventory -i inventory-test.yml --list | cnspec scan --inventory-format-ansible
→ no provider specified, defaulting to local. Use --help to see all providers.
→ loaded configuration from /Users/user/.config/mondoo/mondoo.yml using source default
→ using service account credentials
→ discover related assets for 1 asset(s)
notebook ─────────────────────────────────────────────────────────────────────────────────────────── 0%
→ synchronize assets my inventory file: all:
vars:
ansible_connection: ssh
ansible_port: 22
hosts:
debian12:
ansible_host: 1.176.111.111
ansible_user: admin
ansible_ssh_private_key_file: ~/.ssh/key-rsa |
@chris-rock believes this is likely a product issue. So I created mondoohq/cnquery#4846. In the meantime, I have this: #457 |
Reopening. @slntopp investigated and found that it works -- it's just that no one knew how! :) |
This is fixed in the location @atomic111 identified. I'm going to keep this issue open because I want to update the provider help as well. It doesn't have wrong info but @slntopp provided some helpful info that I want to pass on to users. |
I didn't get the command to work, so I think it's no longer correct
https://github.com/mondoohq/docs/blob/main/docs/platform/infra/opsys/automation/ansible.md?plain=1#L242
this works:
https://github.com/mondoohq/docs/blob/main/docs/platform/infra/opsys/automation/ansible.md?plain=1#L262
Can we please test the command and correct the ansible docs.
The text was updated successfully, but these errors were encountered: