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

Ansible varibale 'keeper_config_file' does not work. There is no config file and the Ansible variable contain no config keys. #673

Open
flybyray opened this issue Oct 11, 2024 · 1 comment

Comments

@flybyray
Copy link

Tested with the sample playbook provided by Keeper-Security.

TASK [Generate a Keeper Record Cache secret] **********************************************************************************************************************************************************************
fatal: [es11]: FAILED! => {"msg": "Keeper Ansible error: There is no config file and the Ansible variable contain no config keys. Will not be able to connect to the Keeper server."}

ansible-inventory -i inventory/prod --host es11 | \jq -r ".keeper_config_file"

{{ (inventory_dir, '..', '..') | path_join | realpath }}/keeper-{{ inventory_dir | basename }}.ini

ansible es11 -i inventory/prod -m debug -a 'var=keeper_config_file'

es11 | SUCCESS => {
    "keeper_config_file": "~/ansible/keeper-prod.ini"
}

head ~/ansible/keeper-prod.ini

[_config]
active_profile = _default
color = True
cache = False
record_type_dir
editor
editor_use_blocking = False
editor_process_name

[_default]
@flybyray
Copy link
Author

Not sure if this is a bug but it is against habits of ansible developers.
the variables keeper_ may not include Jinja2 templating. :-(

can be closed but i would like to see this fixed, templating is just useful to have clean structure for different inventories.

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