I'm executing the same script at two different hosts. Script just returns 
current working directory:

  tasks:
    - name: Get exec_path localaction
      local_action: command pwd
      register: res
    - debug: var=res.stdout_lines

At both hosts script is locted in /opt/test
In one host I'm getting script location:
TASK [debug] 
*************************************************************************************************************************************************************************************************
ok: [single] => {
    "res.stdout_lines": [
        "/opt/test"
    ]
}

On another: /root

TASK [debug] 
*********************************************************************************************************************************************
ok: [ single ] => {
    "res.stdout_lines": [
        "/root"
    ]
}

Why it is so? How to make on second host run local_action from scrit 
location?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d23be014-2135-44ec-bd8b-3632a0c022een%40googlegroups.com.

Reply via email to