Skip to content

Commit 22d6c34

Browse files
committed
ansible_cfg: fix Python interpreter discovery warning
Add ansible_python_interpreter setting to suppress the Python interpreter discovery warning during ansible.cfg generation. Uses ansible_playbook_python variable to ensure consistency with the Python interpreter running the playbook. Generated-by: Claude AI Reviewed-by: Chuck Lever <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
1 parent c2f77ba commit 22d6c34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playbooks/ansible_cfg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
- name: Ansible Configuration Role
33
hosts: localhost
4+
vars:
5+
ansible_python_interpreter: "{{ ansible_playbook_python }}"
46
roles:
57
- role: ansible_cfg

0 commit comments

Comments
 (0)