[PATCH RFT 3/6] ansible_cfg: fix Python interpreter discovery warning
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> 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 Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/ansible_cfg.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/ansible_cfg.yml b/playbooks/ansible_cfg.yml index 872f2ee4..a6c80227 100644 --- a/playbooks/ansible_cfg.yml +++ b/playbooks/ansible_cfg.yml @@ -1,5 +1,7 @@ --- - name: Ansible Configuration Role hosts: localhost + vars: + ansible_python_interpreter: "{{ ansible_playbook_python }}" roles: - role: ansible_cfg -- 2.50.1