Skip to content

Commit 1f74f0e

Browse files
author
Bharat Kunwar
committed
Move reset ansible_python_interpreter to the end
1 parent 8f05355 commit 1f74f0e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tasks/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
cluster_group: "{{ stack_output.stdout | from_json }}"
4242
when: cluster_state == 'query'
4343

44-
- name: Reset the python interpreter
45-
set_fact:
46-
ansible_python_interpreter: "{{ old_python_interpreter }}"
47-
when: cluster_venv != None
48-
4944
- block:
5045
- name: Extract server ids from cluster group output
5146
set_fact:
@@ -130,3 +125,9 @@
130125
delegate_to: "{{ cluster_gw_ip | default('localhost') }}"
131126

132127
when: cluster_state in ['present', 'query']
128+
129+
- name: Reset the python interpreter
130+
set_fact:
131+
ansible_python_interpreter: "{{ old_python_interpreter }}"
132+
when: cluster_venv != None
133+

0 commit comments

Comments
 (0)