@@ -18,6 +18,16 @@ config ANSIBLE_CFG_INVENTORY_SET_BY_CLI
1818 bool
1919 default $(shell, scripts/check-cli-set-var.sh KDEVOPS_HOSTS)
2020
21+ config ANSIBLE_CFG_FILE_CUSTOM
22+ bool "Set a custom location for the ansible.cfg file"
23+ help
24+ When this option is set to N, kdevops creates an ansible.cfg
25+ in a sensible default location, using the settings defined
26+ in this Kconfig menu. If it is set to Y, you can set the
27+ path and filename of the Ansible configuration file.
28+
29+ if ANSIBLE_CFG_FILE_CUSTOM
30+
2131config ANSIBLE_CFG_FILE
2232 string "Ansible configuration file"
2333 output yaml
@@ -41,6 +51,8 @@ config ANSIBLE_CFG_FILE
4151 For more details, refer to the Ansible documentation:
4252 https://docs.ansible.com/ansible/latest/reference_appendices/config.html#the-configuration-file
4353
54+ endif # ANSIBLE_CFG_FILE_CUSTOM
55+
4456menu "Ansible Callback Plugin Configuration"
4557choice
4658 prompt "Ansible Callback Plugin"
@@ -251,6 +263,16 @@ config ANSIBLE_CFG_TASK_DEBUGGER
251263
252264 https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_debugger.html#id10
253265
266+ config ANSIBLE_CFG_INVENTORY_CUSTOM
267+ bool "Set a custom location for the Ansible inventory"
268+ help
269+ When this option is set to N, kdevops creates its
270+ inventory file in a sensible default location. If it is
271+ set to Y, you can set the path and filename of the Ansible
272+ inventory.
273+
274+ if ANSIBLE_CFG_INVENTORY_CUSTOM
275+
254276config ANSIBLE_CFG_INVENTORY
255277 string "Ansible inventory sources"
256278 output yaml
@@ -270,6 +292,8 @@ config ANSIBLE_CFG_INVENTORY
270292 For more details, refer to the Ansible documentation:
271293 https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-host-list
272294
295+ endif # ANSIBLE_CFG_INVENTORY_CUSTOM
296+
273297if DISTRO_OPENSUSE
274298
275299config ANSIBLE_CFG_RECONNECTION_RETRIES
0 commit comments