ara icon indicating copy to clipboard operation
ara copied to clipboard

ara cli client config file and switch to read ansible.cfg

Open eoli3n opened this issue 3 years ago • 0 comments

What is the idea ?

Provides a way to configure ara cli client with a config file. And a switch to read ansible.cfg if user asks for it like, for exemple

~/.config/ara/config

api_client = http
api_server = https://api.domain.com/
api_username = ansible
api_password = **************
api_timeout = 15

OR

/etc/ansible/ansible.cfg

[ara]
api_client = http
api_server = https://api.domain.com/
api_username = ansible
api_password = **************
api_timeout = 15

with ~/.config/ara/config

# Autodetect /etc/ansible/ansible.cfg file
api_ansible_config = true
# Provide a way to force the file
api_ansible_config_file = /root/ansible-ara.cfg

eoli3n avatar Dec 14 '20 15:12 eoli3n