Description
Summary
when trying to run the community kv get error for "python-consul" here
community.general/plugins/lookup/consul_kv.py
Line 128 in 015566f
New distro only supports pip3 and would also like to know if pytohn-consul2 is supported ?
Issue Type
Bug Report
Component Name
https://github.com/ansible-collections/community.general/blob/main/plugins/lookup/
Ansible Version
$ ansible --version
AWX tower via operator version 0.21
Community.general Version
$ ansible-galaxy collection list community.general
- name: community.general
source: https://galaxy.ansible.com
Configuration
$ ansible-config dump --only-changed
-
name: Retrieve a value from the key/value store
community.general.consul_kv:
host: dev-consul.domain.com
port: 32690
key: test/testkey
register: test_key -
name: Print Key Value
debug:
var: test_key -
name: retrieving a KV from consul cluster on non default port
debug:
msg: "{{ lookup('community.general.consul_kv', 'test/testkey', host='dev-consul.domain.com', port='32690') }}"
OS / Environment
rhel 8 and k8s
Steps to Reproduce
-
name: Retrieve a value from the key/value store
community.general.consul_kv:
host: dev-consul.domain.com
port: 32690
key: test/testkey
register: test_key -
name: Print Key Value
debug:
var: test_key -
name: retrieving a KV from consul cluster on non default port
debug:
msg: "{{ lookup('community.general.consul_kv', 'test/testkey', host='dev-consul.domain.com', port='32690') }}"
Expected Results
expect version to be installed but never installs due to updated distro believe
Actual Results
'python-consul is required for consul_kv lookup. see http://python-consul.readthedocs.org/en/latest/#installation')
Code of Conduct
- I agree to follow the Ansible Code of Conduct