|
|
|
|
@ -23,13 +23,18 @@ |
|
|
|
|
delegate_to: localhost |
|
|
|
|
delegate_facts: yes |
|
|
|
|
|
|
|
|
|
- name: Clear gathered facts from all currently targeted hosts |
|
|
|
|
ansible.builtin.meta: clear_facts |
|
|
|
|
|
|
|
|
|
- name: set ansible_user |
|
|
|
|
set_fact: |
|
|
|
|
ansible_ssh_user: "{{ ansible_user }}" |
|
|
|
|
when: connection_test is succeeded |
|
|
|
|
|
|
|
|
|
- name: set python interpreter |
|
|
|
|
set_fact: |
|
|
|
|
ansible_ssh_user: /usr/bin/env python |
|
|
|
|
|
|
|
|
|
- name: Clear gathered facts from all currently targeted hosts |
|
|
|
|
ansible.builtin.meta: clear_facts |
|
|
|
|
|
|
|
|
|
- name: reload facts |
|
|
|
|
setup: |
|
|
|
|
|