fix: add ansible_python_interpreter variable to local tasks in automation playbooks

This commit is contained in:
wangruidong
2026-07-10 14:10:35 +08:00
committed by feng626
parent ced00276b0
commit 3ac7d00685
4 changed files with 16 additions and 2 deletions

View File

@@ -109,6 +109,8 @@
- check_conn_after_change or change_secret_result.failed | default(false)
connection: local
delegate_to: localhost
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"
- name: "Verify {{ account.username }} SSH KEY (paramiko)"
ssh_ping:
@@ -123,3 +125,5 @@
- check_conn_after_change or change_secret_result.failed | default(false)
connection: local
delegate_to: localhost
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"

View File

@@ -109,6 +109,8 @@
- check_conn_after_change or change_secret_result.failed | default(false)
connection: local
delegate_to: localhost
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"
- name: "Verify {{ account.username }} SSH KEY (paramiko)"
ssh_ping:
@@ -123,3 +125,5 @@
- check_conn_after_change or change_secret_result.failed | default(false)
connection: local
delegate_to: localhost
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"

View File

@@ -109,6 +109,8 @@
- check_conn_after_change or change_secret_result.failed | default(false)
connection: local
delegate_to: localhost
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"
- name: "Verify {{ account.username }} SSH KEY (paramiko)"
ssh_ping:
@@ -123,4 +125,5 @@
- check_conn_after_change or change_secret_result.failed | default(false)
delegate_to: localhost
connection: local
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"

View File

@@ -109,6 +109,8 @@
- check_conn_after_change or change_secret_result.failed | default(false)
delegate_to: localhost
connection: local
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"
- name: "Verify {{ account.username }} SSH KEY (paramiko)"
ssh_ping:
@@ -123,4 +125,5 @@
- check_conn_after_change or change_secret_result.failed | default(false)
delegate_to: localhost
connection: local
vars:
ansible_python_interpreter: "{{ local_python_interpreter }}"